interface RequestResponseInterface

Methods

getRequestHeader(headerKey: string): string

This function returns the value of the specified request header.

getResponseHeader(headerKey: string): string

This function gets the value of the specified response header.

setResponseHeader(
headerKey: string,
headerValue: string,
): void

This function sets the value of the specified response header.

removeResponseHeader(headerKey: string): void

This function removes the specified response header.

Usage

import { type RequestResponseInterface } from "types/mod.ts";