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

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

Super-agent driven library for testing Deno HTTP servers.
Latest
interface Oak.RouterAllowedMethodsOptions
import { type Oak } from "https://deno.land/x/superdeno@4.9.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.