Skip to main content
Module

x/dactyl/Arg.ts>Header

Web framework for Deno, built on top of Oak 🦇
Latest
function Header
import { Header } from "https://deno.land/x/dactyl@v0.1.0-alpha/Arg.ts";

Parameter decorator - maps context.request.headers onto controller actions as an argument, e.g.

public controllerAction(@Header('content-type') contentType: string): any { }

Returns whole context.request.headers if no key specified

Parameters

optional
headerKey: string

Returns

ParameterDecorator