Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

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

X-Server a Deno server module with middleware
Go to Latest
class Plugin.default
Abstract
import { Plugin } from "https://deno.land/x/xserver@5.3.3/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