Response.functions.getHeaders
fx-fetch / Response / getHeaders
Function: getHeaders()
Section titled “Function: getHeaders()”getHeaders(
self):Headers
Defined in: packages/fx-fetch/src/Response/getHeaders.ts:23
Gets the headers of the response.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Headers
Example
Section titled “Example”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