@aws-sdk/types 3.342.0 → 3.347.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +1 -0
- package/dist-cjs/uri.js +2 -0
- package/dist-es/index.js +1 -0
- package/dist-es/uri.js +1 -0
- package/dist-types/http.d.ts +3 -1
- package/dist-types/index.d.ts +1 -0
- package/dist-types/ts3.4/http.d.ts +3 -1
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/uri.d.ts +11 -0
- package/dist-types/uri.d.ts +17 -0
- package/package.json +1 -1
package/dist-cjs/index.js
CHANGED
|
@@ -28,5 +28,6 @@ tslib_1.__exportStar(require("./signature"), exports);
|
|
|
28
28
|
tslib_1.__exportStar(require("./stream"), exports);
|
|
29
29
|
tslib_1.__exportStar(require("./token"), exports);
|
|
30
30
|
tslib_1.__exportStar(require("./transfer"), exports);
|
|
31
|
+
tslib_1.__exportStar(require("./uri"), exports);
|
|
31
32
|
tslib_1.__exportStar(require("./util"), exports);
|
|
32
33
|
tslib_1.__exportStar(require("./waiter"), exports);
|
package/dist-cjs/uri.js
ADDED
package/dist-es/index.js
CHANGED
package/dist-es/uri.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist-types/http.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AbortSignal } from "./abort";
|
|
2
|
+
import { URI } from "./uri";
|
|
2
3
|
/**
|
|
3
4
|
* @public
|
|
4
5
|
*
|
|
@@ -80,7 +81,7 @@ export interface Endpoint {
|
|
|
80
81
|
* Interface an HTTP request class. Contains
|
|
81
82
|
* addressing information in addition to standard message properties.
|
|
82
83
|
*/
|
|
83
|
-
export interface HttpRequest extends HttpMessage,
|
|
84
|
+
export interface HttpRequest extends HttpMessage, URI {
|
|
84
85
|
method: string;
|
|
85
86
|
}
|
|
86
87
|
/**
|
|
@@ -91,6 +92,7 @@ export interface HttpRequest extends HttpMessage, Endpoint {
|
|
|
91
92
|
*/
|
|
92
93
|
export interface HttpResponse extends HttpMessage {
|
|
93
94
|
statusCode: number;
|
|
95
|
+
reason?: string;
|
|
94
96
|
}
|
|
95
97
|
/**
|
|
96
98
|
* @public
|
package/dist-types/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AbortSignal } from "./abort";
|
|
2
|
+
import { URI } from "./uri";
|
|
2
3
|
export interface Headers extends Map<string, string> {
|
|
3
4
|
withHeader(headerName: string, headerValue: string): Headers;
|
|
4
5
|
withoutHeader(headerName: string): Headers;
|
|
@@ -16,11 +17,12 @@ export interface Endpoint {
|
|
|
16
17
|
path: string;
|
|
17
18
|
query?: QueryParameterBag;
|
|
18
19
|
}
|
|
19
|
-
export interface HttpRequest extends HttpMessage,
|
|
20
|
+
export interface HttpRequest extends HttpMessage, URI {
|
|
20
21
|
method: string;
|
|
21
22
|
}
|
|
22
23
|
export interface HttpResponse extends HttpMessage {
|
|
23
24
|
statusCode: number;
|
|
25
|
+
reason?: string;
|
|
24
26
|
}
|
|
25
27
|
export interface ResolvedHttpResponse extends HttpResponse {
|
|
26
28
|
body: string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { QueryParameterBag } from "./http";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*
|
|
5
|
+
* Represents the components parts of a Uniform Resource Identifier used to
|
|
6
|
+
* construct the target location of a Request.
|
|
7
|
+
*/
|
|
8
|
+
export type URI = {
|
|
9
|
+
protocol: string;
|
|
10
|
+
hostname: string;
|
|
11
|
+
port?: number;
|
|
12
|
+
path: string;
|
|
13
|
+
query?: QueryParameterBag;
|
|
14
|
+
username?: string;
|
|
15
|
+
password?: string;
|
|
16
|
+
fragment?: string;
|
|
17
|
+
};
|