🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@smithy/fetch-http-handler

Package Overview
Dependencies
Maintainers
2
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smithy/fetch-http-handler - npm Package Compare versions

Comparing version
5.6.4
to
5.6.5
+7
dist-types/ts3.4/create-request.d.ts
import { AdditionalRequestParameters } from "./fetch-http-handler";
/**
* For mocking/interception.
*
* @internal
*/
export declare function createRequest(url: string, requestOptions?: RequestInit & AdditionalRequestParameters): Request;
import { HttpResponse, HttpHandler, HttpRequest } from "@smithy/core/protocols";
import { FetchHttpHandlerOptions, HttpHandlerOptions, Provider } from "@smithy/types";
export { FetchHttpHandlerOptions };
/**
* Detection of keepalive support. Can be overridden for testing.
*
* @internal
*/
export declare const keepAliveSupport: {
supported: undefined | boolean;
};
/**
* @internal
*/
export type AdditionalRequestParameters = {
duplex?: "half";
};
/**
* HttpHandler implementation using browsers' `fetch` global function.
*
* @public
*/
export declare class FetchHttpHandler implements HttpHandler<FetchHttpHandlerOptions> {
private config?;
private configProvider;
/**
* @returns the input if it is an HttpHandler of any class,
* or instantiates a new instance of this handler.
*/
static create(instanceOrOptions?: HttpHandler<any> | FetchHttpHandlerOptions | Provider<FetchHttpHandlerOptions | void>): FetchHttpHandler | HttpHandler<any>;
constructor(options?: FetchHttpHandlerOptions | Provider<FetchHttpHandlerOptions | void>);
destroy(): void;
handle(request: HttpRequest, { abortSignal, requestTimeout }?: HttpHandlerOptions): Promise<{
response: HttpResponse;
}>;
updateHttpClientConfig(key: keyof FetchHttpHandlerOptions, value: FetchHttpHandlerOptions[typeof key]): void;
httpHandlerConfigs(): FetchHttpHandlerOptions;
}
export { AdditionalRequestParameters, FetchHttpHandler, FetchHttpHandlerOptions, keepAliveSupport } from "./fetch-http-handler";
export { streamCollector } from "@smithy/core/serde";
export declare function requestTimeout(timeoutInMs?: number): Promise<never>;
+4
-4
{
"name": "@smithy/fetch-http-handler",
"version": "5.6.4",
"version": "5.6.5",
"description": "Provides a way to make requests",

@@ -30,8 +30,8 @@ "scripts": {

"dependencies": {
"@smithy/core": "^3.29.2",
"@smithy/types": "^4.16.0",
"@smithy/core": "^3.29.3",
"@smithy/types": "^4.16.1",
"tslib": "^2.6.2"
},
"devDependencies": {
"@smithy/abort-controller": "^4.3.2",
"@smithy/abort-controller": "^4.3.3",
"concurrently": "7.0.0",

@@ -38,0 +38,0 @@ "downlevel-dts": "0.10.1",