Module

x/aleph/api.ts>Request

The Full-stack Framework in Deno.
Very Popular
Go to Latest
class Request
implements APIRequest
extends ServerRequest
import { Request } from "https://deno.land/x/aleph@v0.2.13/api.ts";

Constructors

new
Request(
pathname: string,
params: Record<string, string>,
)

Properties

readonly
cookies: ReadonlyMap<string, string>
readonly
params: Record<string, string>
readonly
pathname: string
readonly
query: URLSearchParams

Methods

addHeader(key: string, value: string): this
json(
data: any,
replacer?: (
this: any,
key: string,
value: any,
) => any
,
space?: string | number,
): Promise<void>
removeHeader(key: string): this
send(data: string | Uint8Array | ArrayBuffer, contentType?: string): Promise<void>
setHeader(key: string, value: string): this
status(code: number): this