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

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

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

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