Skip to main content
Module

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

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

Defines a handler for incoming OPTIONS requests.

The HTTP OPTIONS method requests permitted communication options for a given URL or server. A client can specify a URL with this method, or an asterisk (*) to refer to the entire server.

Type Parameters

optional
ExpectedParams = { }
optional
Data = { }

Parameters

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