Skip to main content
Module

x/aleph/api.ts>Request

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

Properties

readonly
body
readonly
conn
readonly
contentLength
readonly
cookies: ReadonlyMap<string, string>
readonly
done
readonly
headers: Headers
readonly
method: string
readonly
proto
readonly
protoMajor
readonly
protoMinor
readonly
r
readonly
url: APIRequestURL
readonly
w

Methods

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