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

x/xserver/src/mod.ts>Context

X-Server a Deno server module with middleware
Go to Latest
class Context
Re-export
import { Context } from "https://deno.land/x/xserver@2.0.0/src/mod.ts";

Constructors

new
Context(request: Request)

Properties

headers: Headers
method: string
redirect
request: Request
tool: Record<string, any>
url: URL

Methods

body(body?: Body): this | Body | any
code(code?: Status): this | Status | any
end(code?: Status, body?: Body): Response
get(name: string)
head(head?: Record<string, string>): this | Record<string, string> | any
message(message?: string):
| this
| string
| undefined
| any
set(name: string, value: any)