1 | import {Endpoint} from './endpoint';
|
2 |
|
3 |
|
4 |
|
5 | export class HttpRequest {
|
6 | |
7 |
|
8 |
|
9 | constructor(endpoint: Endpoint, region: string);
|
10 | /**
|
11 | * The part of the path excluding the query string.
|
12 | */
|
13 | pathname(): string;
|
14 | /**
|
15 | * The query string portion of the path.
|
16 | */
|
17 | search: string;
|
18 | /**
|
19 | * The request body payload.
|
20 | */
|
21 | body: string;
|
22 | /**
|
23 | * The endpoint for the request.
|
24 | */
|
25 | endpoint: Endpoint;
|
26 | /**
|
27 | * A map of header keys and their respective values.
|
28 | */
|
29 | headers: {
|
30 | [key: string]: string;
|
31 | }
|
32 | |
33 |
|
34 |
|
35 | method: string;
|
36 | |
37 |
|
38 |
|
39 | path: string;
|
40 | }
|