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

x/xserver/src/plugin.ts>Plugin

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