x/oak/mod.ts

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Very Popular
Go to Latest
method Router.prototype.head
import { Router } from "https://dotland-vbqsvsrpfncg.deno-staging.dev/x/oak@v11.1.0/mod.ts?p=prototype.head&s=Router";

Register named middleware for the specified routes when the HEAD, method is requested.

Type Parameters

R extends string[src]
optional
P extends RouteParams<R> = RouteParams<R>
[src]
optional
S extends State = RS
[src]

Parameters

name: string[src]
path: R[src]
middleware: RouterMiddleware<R, P, S>[src]
...middlewares: RouterMiddleware<R, P, S>[][src]

Returns

Router<S extends RS ? S : (S & RS)>[src]

Register middleware for the specified routes when the HEAD, method is requested.

Type Parameters

R extends string[src]
optional
P extends RouteParams<R> = RouteParams<R>
[src]
optional
S extends State = RS
[src]

Parameters

path: R[src]
middleware: RouterMiddleware<R, P, S>[src]
...middlewares: RouterMiddleware<R, P, S>[][src]

Returns

Router<S extends RS ? S : (S & RS)>[src]

Register middleware for the specified routes when the HEAD, method is requested with explicit path parameters.

Type Parameters

P extends RouteParams<string>[src]
optional
S extends State = RS
[src]

Parameters

nameOrPath: string[src]
pathOrMiddleware: string | RouterMiddleware<string, P, S>[src]
...middleware: RouterMiddleware<string, P, S>[][src]

Returns

Router<S extends RS ? S : (S & RS)>[src]