method OakRequestResponse.prototype.setResponseHeader
OakRequestResponse.prototype.setResponseHeader(
headerKey: string,
headerValue: string,
): void

Sets the value of a response header.

Parameters

headerKey: string
  • The key of the header to set.
headerValue: string
  • The value to set for the header.

Return Type

void

This function does not return anything.

Usage

import default from "types/mod.ts";