File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
middleware-content-length/src Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export function contentLengthMiddleware(
18
18
) : Promise < BuildHandlerOutput < Output > > => {
19
19
let request = { ...args . request } ;
20
20
//TODO: cast request with instanceof
21
- if ( HttpRequest . isHttpRequest ( request ) ) {
21
+ if ( HttpRequest . isInstance ( request ) ) {
22
22
const { body, headers } = request ;
23
23
if (
24
24
body &&
Original file line number Diff line number Diff line change @@ -26,12 +26,12 @@ export interface ResponseDeserializer<ResponseType> {
26
26
< OutputType > ( output : ResponseType , protocolName : string ) : Promise < OutputType > ;
27
27
}
28
28
29
- // / **
30
- // * A function that converts a stream into an array of bytes.
31
- // */
32
- // export interface StreamCollector<StreamType> {
33
- // (stream: StreamType): Promise<Uint8Array>;
34
- // }
29
+ /**
30
+ * A function that converts a stream into an array of bytes.
31
+ */
32
+ export interface StreamCollector < StreamType > {
33
+ ( stream : StreamType ) : Promise < Uint8Array > ;
34
+ }
35
35
36
36
// /**
37
37
// * A function that parses the http response when http status code > 299,
You can’t perform that action at this time.
0 commit comments