method IResponse.header
IResponse.header(
name: string,
value: string
): IResponse

Sets a response header.

Parameters

name: string

Header name

value: string

Header value

Return Type

This response, for chaining

Usage

import { type IResponse } from "common/src/index.ts";