Skip to main content
Module

x/xserver/src/mod.ts>plugin.default

X-Server a Deno server module with middleware
Latest
class plugin.default
Abstract
import { plugin } from "https://deno.land/x/xserver@5.3.4/src/mod.ts";
const { default } = plugin;

Type Parameters

optional
V = any

Properties

readonly
any: (path: string, value?: V) => this
readonly
connect: (path: string, value?: V) => this
readonly
data: PluginData
readonly
delete: (path: string, value?: V) => this
readonly
get: (path: string, value?: V) => this
readonly
head: (path: string, value?: V) => this
readonly
options: (path: string, value?: V) => this
readonly
patch: (path: string, value?: V) => this
readonly
post: (path: string, value?: V) => this
readonly
put: (path: string, value?: V) => this
readonly
trace: (path: string, value?: V) => this

Methods

optional
handle(context: Context, value?: V): Promise<Response | void> | Response | void
optional
setup(context: Context): Promise<Response | void> | Response | void