Skip to content

Response.functions.clearHeaders

fx-fetch


fx-fetch / Response / clearHeaders

clearHeaders(self): Response

Defined in: packages/fx-fetch/src/Response/clearHeaders.ts:22

Clears all headers from a Response.

Response

Response

import { Response } from 'fx-fetch';
const response = Response.make({ url: 'https://api.example.com' });
const responseWithoutHeaders = Response.clearHeaders(response);

0.1.0