http_request.d.ts
945 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import {Endpoint} from './endpoint';
/**
* The low level HTTP request object, encapsulating all HTTP header and body data sent by a service request.
*/
export class HttpRequest {
/**
* Constructs HttpRequest object with provided endpoint and region
*/
constructor(endpoint: Endpoint, region: string);
/**
* The part of the path excluding the query string.
*/
pathname(): string;
/**
* The query string portion of the path.
*/
search: string;
/**
* The request body payload.
*/
body: string;
/**
* The endpoint for the request.
*/
endpoint: Endpoint;
/**
* A map of header keys and their respective values.
*/
headers: {
[key: string]: string;
}
/**
* The HTTP method of the request.
*/
method: string;
/**
* The path portion of the URI, e.g., "/list/?start=5&num=10".
*/
path: string;
}