x/oak/mod.ts

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Very Popular
Go to Latest
interface RouterAllowedMethodsOptions
import { type RouterAllowedMethodsOptions } from "https://dotland-vbqsvsrpfncg.deno-staging.dev/x/oak@v11.1.0/mod.ts?p=prototype.%5BSymbol.for%28%22Deno.customInspect%22%29%5D&s=RouterAllowedMethodsOptions";

Properties

optional
throw: boolean
[src]

When dealing with a non-implemented method or a method not allowed, throw an error instead of setting the status and header for the response.

Methods

optional
methodNotAllowed(): any
[src]

Use the value returned from this function instead of an HTTP error MethodNotAllowed.

optional
notImplemented(): any
[src]

Use the value returned from this function instead of an HTTP error NotImplemented.