class Request
implements APIRequest
import { Request } from "https://deno.land/x/aleph@v0.3.0-alpha.32/server/api.ts";
Constructors
Properties
readonly
conn: Deno.Connreadonly
headers: Headersreadonly
query: URLSearchParamsreadonly
r: BufReaderreadonly
w: BufWriterMethods
addHeader(key: string, value: string): this
json(): Promise<void>
data: any,
replacer?: () => any,
this: any,
key: string,
value: any,
space?: string | number,
readBody(type?: "raw"): Promise<Uint8Array>
readBody(type: "text"): Promise<string>
readBody(type: "json"): Promise<any>
readBody(type: "form"): Promise<MultipartFormData>
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