Skip to main content
Module

x/espresso/context.ts>Context

Minimal web framework for Deno
Latest
class Context
implements ContexInterface
import { Context } from "https://deno.land/x/espresso@0.1.1/context.ts";

Constructors

new
Context(request: ServerRequest)

Properties

readonly
body: object | string
readonly
hostname: object
readonly
method: string
optional
params: Record<string, unknown>
readonly
request
readonly
url: string

Methods

json(body: string | object)
send(body: string)