method OakRequestResponse.prototype.getResponseHeader
OakRequestResponse.prototype.getResponseHeader(headerKey: string): string

Retrieves the value of the specified response header.

Parameters

headerKey: string
  • The key of the response header to retrieve.

Return Type

string

The value of the specified response header, or an empty string if the header is not present.

Usage

import default from "types/mod.ts";