Skip to main content
OutgoingMessage.prototype.removeHeader - http - Node documentation
method OutgoingMessage.prototype.removeHeader

Usage in Deno

import { OutgoingMessage } from "node:http";
OutgoingMessage.prototype.removeHeader(name: string): void

Removes a header that is queued for implicit sending.

outgoingMessage.removeHeader('Content-Encoding');

Parameters

name: string

Header name

Return Type

void