1 | import { HttpApiEvent } from "./payload";
|
2 | export declare class Request {
|
3 | private event;
|
4 | constructor(event: HttpApiEvent);
|
5 | getProperties(): {
|
6 | body: any;
|
7 | path: {
|
8 | [name: string]: string;
|
9 | };
|
10 | rawPath: string;
|
11 | query: {
|
12 | [name: string]: string;
|
13 | };
|
14 | rawQueryString: string;
|
15 | headers: {
|
16 | [name: string]: string;
|
17 | };
|
18 | testRequest: boolean;
|
19 | auth: any;
|
20 | };
|
21 | private getAuth;
|
22 | }
|
23 | export declare class Body {
|
24 | private body;
|
25 | private headers;
|
26 | constructor(body: any, headers: {
|
27 | [name: string]: string;
|
28 | });
|
29 | getParsedBody(): any;
|
30 | private getContentType;
|
31 | private isFormUrlEncoded;
|
32 | private isJSON;
|
33 | }
|