Request.functions.clearHeaders
fx-fetch / Request / clearHeaders
Function: clearHeaders()
Section titled “Function: clearHeaders()”clearHeaders(
self):Request
Defined in: packages/fx-fetch/src/Request/clearHeaders.ts:22
Clears all headers from a Request.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Example
Section titled “Example”import { Request } from 'fx-fetch';
const request = Request.make({ url: 'https://api.example.com' });const requestWithoutHeaders = Request.clearHeaders(request);0.1.0