Skip to main content
Module

x/core/context.ts>Context

A compact, high-performance and full-featured web server framework in Deno.
Go to Latest
class Context
import { Context } from "https://deno.land/x/core@0.0.3/context.ts";

Web Application Context extends native request and response

Constructors

new
Context(request: Request)

Index Signatures

[index: string]: any

Properties

readonly
body
readonly
cookies
error: HttpError | undefined
readonly
headers
readonly
host
readonly
hostname
readonly
method
readonly
origin
params: Record<string, string>
readonly
path
readonly
port
readonly
protocol
readonly
query
readonly
request
status: number
statusText: string
readonly
url

Methods

append(name: string, value: string)
build(body:
| undefined
| null
)
delete(name: string)
get(name: string)
has(name: string)
redirect(url: string, status?:
| 301
| 302
| 303
| 307
| 308
)
set(name: string, value: string)
throw(message: string, status?: number)