class Request
implements APIRequest
import { Request } from "https://deno.land/x/aleph@v0.3.0-alpha.4/server/api.ts";
Constructors
Properties
readonly
body: Deno.Readerreadonly
conn: Deno.Connreadonly
headers: Headersreadonly
query: URLSearchParamsMethods
addHeader(key: string, value: string): this
decodeBody(type: "text"): Promise<string>
decodeBody(type: "json"): Promise<any>
decodeBody(type: "form-data"): Promise<FormDataBody>
json(): Promise<void>
data: any,
replacer?: () => any,
this: any,
key: string,
value: any,
space?: string | number,
removeHeader(key: string): this
respond(r: ServerResponse): Promise<void>
send(data: string | Uint8Array | ArrayBuffer, contentType?: string): Promise<void>
setHeader(key: string, value: string): this
status(code: number): this