Skip to main content
IncomingMessage.prototype.headersDistinct - node__http.d.ts - Node documentation
property IncomingMessage.prototype.headersDistinct

Usage in Deno

```typescript import { IncomingMessage } from "node:node__http.d.ts"; ```
Similar to `message.headers`, but there is no join logic and the values are always arrays of strings, even for headers received just once. ```js // Prints something like: // // { 'user-agent': ['curl/7.22.0'], // host: ['127.0.0.1:8000'], // accept: ['*'] } console.log(request.headersDistinct); ```

Type

Dict<string[]>