# Response.setHeader() method · @imqueue/http-protect

Source: https://imqueue.org/api/http-protect/latest/http-protect.response.setheader/
Published: 2026-08-01
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/http-protect 3.0.1 — generated reference, not hand-written

Node-style header setter, used only when [Response.header()](https://imqueue.org/api/http-protect/latest/http-protect.response.header/) is absent.

**Signature:**

```typescript
setHeader?(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.

