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

x/xserver/src/context.ts>default

A Deno server module with middleware
Go to Latest
class default
import { default } from "https://deno.land/x/xserver@1.0.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)