Skip to main content
Http2ServerResponse.prototype.addTrailers - node__http2.d.ts - Node documentation
method Http2ServerResponse.prototype.addTrailers

Usage in Deno

```typescript import { Http2ServerResponse } from "node:node__http2.d.ts"; ```
Http2ServerResponse.prototype.addTrailers(trailers: OutgoingHttpHeaders): void
This method adds HTTP trailing headers (a header but at the end of the message) to the response. Attempting to set a header field name or value that contains invalid characters will result in a `TypeError` being thrown.

Parameters

Return Type

void