Response.variables.deleteHeader
fx-fetch / Response / deleteHeader
Variable: deleteHeader()
Section titled “Variable: deleteHeader()”
constdeleteHeader: {(self,name,value?):Response; (name,value?): (self) =>Response; }
Defined in: packages/fx-fetch/src/Response/deleteHeader.ts:30
Deletes a header from a Response.
Call Signature
Section titled “Call Signature”(
self,name,value?):Response
Deletes a header from a Response.
Parameters
Section titled “Parameters”string
value?
Section titled “value?”string
Returns
Section titled “Returns”Example
Section titled “Example”import { Response } from 'fx-fetch';
const response = Response.make({ url: 'https://api.example.com' });const responseWithoutHeader = Response.deleteHeader(response, 'Authorization');0.1.0
Call Signature
Section titled “Call Signature”(
name,value?): (self) =>Response
Deletes a header from a Response.
Parameters
Section titled “Parameters”string
value?
Section titled “value?”string
Returns
Section titled “Returns”(
self):Response
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Example
Section titled “Example”import { Response } from 'fx-fetch';import { pipe } from 'effect';
const response = Response.make({ url: 'https://api.example.com' });
const responseWithoutHeader = pipe( response, Response.deleteHeader('Authorization'));0.1.0
Example
Section titled “Example”import { Response } from 'fx-fetch';
const response = Response.make({ url: 'https://api.example.com' });const responseWithoutHeader = Response.deleteHeader(response, 'Authorization');0.1.0