Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/opine/src/request.ts>WrappedRequest#get

Minimalist web framework for Deno ported from ExpressJS.
Latest
method WrappedRequest.prototype.get
import { WrappedRequest } from "https://deno.land/x/opine@2.3.4/src/request.ts";

Return request header.

The Referrer header field is special-cased, both Referrer and Referer are interchangeable.

Examples:

req.get('Content-Type');
// => "text/plain"

req.get('content-type');
// => "text/plain"

req.get('Something');
// => undefined

Aliased as req.header().

Parameters

name: string

Returns

string | undefined