Skip to main content

getHeader

method Http2ServerResponse.prototype.getHeader
Jump to headingHttp2ServerResponse.prototype.getHeader(name: string): string

Reads out a header that has already been queued but not sent to the client. The name is case-insensitive.

const contentType = response.getHeader('content-type');

Parameters Jump to heading

Jump to headingname: string

Return Type Jump to heading

string
Back to top