Skip to content

Response.variables.deleteHeader

fx-fetch


fx-fetch / Response / deleteHeader

const deleteHeader: {(self, name, value?): Response; (name, value?): (self) => Response; }

Defined in: packages/fx-fetch/src/Response/deleteHeader.ts:30

Deletes a header from a Response.

(self, name, value?): Response

Deletes a header from a Response.

Response

string

string

Response

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

0.1.0

(name, value?): (self) => Response

Deletes a header from a Response.

string

string

(self): Response

Response

Response

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

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

0.1.0