Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Request

import { Request } from "https://raw.githubusercontent.com/Caesar2011/denotrain/master/mod.ts";
class Request {
constructor(request: ServerRequest);
private bodyArray: Uint8Array | null;
body: {
[_: string]: any;
}
;
cookies: {
[_: string]: string;
}
;
public readonly original: ServerRequest;
params: {
[_: string]: UrlEncodedValue | UrlEncodedValue[];
}
;
paramsRaw: {
[_: string]: string | string[];
}
;
path: string;
query: {
[_: string]: UrlEncodedValue | UrlEncodedValue[];
}
;
rawQuery: string;
relPath: string;
 
public async _init();
public async bodyAsString();
public async getBody(): Promise<Uint8Array>;
public async parseInit();
}

§Constructors

§
new Request(request: ServerRequest)
[src]

§Properties

§
bodyArray: Uint8Array | null
[src]
§
body: {
[_: string]: any;
}
[src]
§
cookies: {
[_: string]: string;
}
[src]
§
original: ServerRequest
[src]
§
params: {
[_: string]: UrlEncodedValue | UrlEncodedValue[];
}
[src]
§
paramsRaw: {
[_: string]: string | string[];
}
[src]
§
path: string
[src]
§
query: {
[_: string]: UrlEncodedValue | UrlEncodedValue[];
}
[src]
§
rawQuery: string
[src]
§
relPath: string
[src]

§Methods

§
_init()
[src]
§
bodyAsString()
[src]
§
getBody(): Promise<Uint8Array>
[src]
§
parseInit()
[src]