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

x/xserver/src/context.ts>default

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

Constructors

new
default(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?: number): this | number | any
end(code?: number, 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)