Skip to main content
Module

x/keywork/mod.ts>Router.KeyworkRouter#head

A library for building V8 Isolate web apps on Cloudflare Workers, Deno, and Node.JS
Go to Latest
method Router.KeyworkRouter.prototype.head
import { Router } from "https://deno.land/x/keywork@v6.0.1/mod.ts";
const { KeyworkRouter } = Router;

Defines a handler for incoming HEAD requests.

The HTTP HEAD method requests the headers that would be returned if the HEAD request's URL was instead requested with the HTTP GET method. For example, if a URL might produce a large download, a HEAD request could read its Content-Length header to check the filesize without actually downloading the file.

Type Parameters

optional
ExpectedParams = { }
optional
Data = { }

Parameters

...args: Parameters<RouteMethodDeclaration<BoundAliases, ExpectedParams, Data>>