Response.header() method

Express-style header setter, preferred when present.

Signature:

header?(name: string, value: string): any;

Parameters

Parameter

Type

Description

name

string

the header name

value

string

the header value

Returns:

any

Ignored by the middlewares.

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.