Skip to content

Response.functions.getHeaders

fx-fetch


fx-fetch / Response / getHeaders

getHeaders(self): Headers

Defined in: packages/fx-fetch/src/Response/getHeaders.ts:23

Gets the headers of the response.

Response

Headers

import { Response } from 'fx-fetch';
const response = Response.make({
url: 'https://api.example.com',
headers: { 'Content-Type': 'application/json' }
});
const headers = Response.getHeaders(response);
console.log(headers);

0.1.0