Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/oak_http_proxy/test/deps.ts>Oak.RouterAllowedMethodsOptions

Proxy middleware for Deno Oak HTTP servers. 🐿 🦕
Latest
interface Oak.RouterAllowedMethodsOptions
import { type Oak } from "https://deno.land/x/oak_http_proxy@2.3.0/test/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.