@aws-sdk/protocol-http
Advanced tools
Comparing version 3.342.0 to 3.347.0
@@ -18,2 +18,5 @@ "use strict"; | ||
this.path = options.path ? (options.path.charAt(0) !== "/" ? `/${options.path}` : options.path) : "/"; | ||
this.username = options.username; | ||
this.password = options.password; | ||
this.fragment = options.fragment; | ||
} | ||
@@ -20,0 +23,0 @@ static isInstance(request) { |
@@ -7,2 +7,3 @@ "use strict"; | ||
this.statusCode = options.statusCode; | ||
this.reason = options.reason; | ||
this.headers = options.headers || {}; | ||
@@ -9,0 +10,0 @@ this.body = options.body; |
@@ -15,2 +15,5 @@ export class HttpRequest { | ||
this.path = options.path ? (options.path.charAt(0) !== "/" ? `/${options.path}` : options.path) : "/"; | ||
this.username = options.username; | ||
this.password = options.password; | ||
this.fragment = options.fragment; | ||
} | ||
@@ -17,0 +20,0 @@ static isInstance(request) { |
export class HttpResponse { | ||
constructor(options) { | ||
this.statusCode = options.statusCode; | ||
this.reason = options.reason; | ||
this.headers = options.headers || {}; | ||
@@ -5,0 +6,0 @@ this.body = options.body; |
@@ -1,3 +0,3 @@ | ||
import { Endpoint, HeaderBag, HttpMessage, HttpRequest as IHttpRequest, QueryParameterBag } from "@aws-sdk/types"; | ||
type HttpRequestOptions = Partial<HttpMessage> & Partial<Endpoint> & { | ||
import { HeaderBag, HttpMessage, HttpRequest as IHttpRequest, QueryParameterBag, URI } from "@aws-sdk/types"; | ||
type HttpRequestOptions = Partial<HttpMessage> & Partial<URI> & { | ||
method?: string; | ||
@@ -7,3 +7,3 @@ }; | ||
} | ||
export declare class HttpRequest implements HttpMessage, Endpoint { | ||
export declare class HttpRequest implements HttpMessage, URI { | ||
method: string; | ||
@@ -16,2 +16,5 @@ protocol: string; | ||
headers: HeaderBag; | ||
username?: string; | ||
password?: string; | ||
fragment?: string; | ||
body?: any; | ||
@@ -18,0 +21,0 @@ constructor(options: HttpRequestOptions); |
import { HeaderBag, HttpMessage, HttpResponse as IHttpResponse } from "@aws-sdk/types"; | ||
type HttpResponseOptions = Partial<HttpMessage> & { | ||
statusCode: number; | ||
reason?: string; | ||
}; | ||
@@ -9,2 +10,3 @@ export interface HttpResponse extends IHttpResponse { | ||
statusCode: number; | ||
reason?: string; | ||
headers: HeaderBag; | ||
@@ -11,0 +13,0 @@ body?: any; |
import { | ||
Endpoint, | ||
HeaderBag, | ||
@@ -7,9 +6,10 @@ HttpMessage, | ||
QueryParameterBag, | ||
URI, | ||
} from "@aws-sdk/types"; | ||
type HttpRequestOptions = Partial<HttpMessage> & | ||
Partial<Endpoint> & { | ||
Partial<URI> & { | ||
method?: string; | ||
}; | ||
export interface HttpRequest extends IHttpRequest {} | ||
export declare class HttpRequest implements HttpMessage, Endpoint { | ||
export declare class HttpRequest implements HttpMessage, URI { | ||
method: string; | ||
@@ -22,2 +22,5 @@ protocol: string; | ||
headers: HeaderBag; | ||
username?: string; | ||
password?: string; | ||
fragment?: string; | ||
body?: any; | ||
@@ -24,0 +27,0 @@ constructor(options: HttpRequestOptions); |
@@ -8,2 +8,3 @@ import { | ||
statusCode: number; | ||
reason?: string; | ||
}; | ||
@@ -13,2 +14,3 @@ export interface HttpResponse extends IHttpResponse {} | ||
statusCode: number; | ||
reason?: string; | ||
headers: HeaderBag; | ||
@@ -15,0 +17,0 @@ body?: any; |
{ | ||
"name": "@aws-sdk/protocol-http", | ||
"version": "3.342.0", | ||
"version": "3.347.0", | ||
"scripts": { | ||
@@ -24,3 +24,3 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", | ||
"dependencies": { | ||
"@aws-sdk/types": "3.342.0", | ||
"@aws-sdk/types": "3.347.0", | ||
"tslib": "^2.5.0" | ||
@@ -27,0 +27,0 @@ }, |
29028
522
+ Added@aws-sdk/types@3.347.0(transitive)
- Removed@aws-sdk/types@3.342.0(transitive)
Updated@aws-sdk/types@3.347.0