Skip to main content
Module

x/oak/mod.ts>RouterAllowedMethodsOptions

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Extremely Popular
Go to Latest
interface RouterAllowedMethodsOptions
import { type RouterAllowedMethodsOptions } from "https://deno.land/x/oak@v10.6.0/mod.ts";

Properties

optional
throw: boolean

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

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

optional
notImplemented(): any

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