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