Skip to main content
Module

x/xserver/src/plugin.ts>default

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

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