Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/hex/src/fw/service/deps.ts>oak.RouterAllowedMethodsOptions

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Latest
interface oak.RouterAllowedMethodsOptions
import { type oak } from "https://deno.land/x/hex@0.6.5/src/fw/service/deps.ts";
const { RouterAllowedMethodsOptions } = oak;

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.