Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/ghst/res.ts>HTTPResponse#setHeader

A light-weight http framework built for Deno.
Go to Latest
method HTTPResponse.prototype.setHeader
import { HTTPResponse } from "https://deno.land/x/ghst@1.1.1/res.ts";

Adds a header to the response.

Parameters

name: string

The name of the header.

value: string

The value of the header.