cdk-amazon-chime-resources
Version:

22 lines (21 loc) • 783 B
TypeScript
import { HttpHandler, HttpRequest, HttpResponse } from "@aws-sdk/protocol-http";
import { HttpHandlerOptions, Provider } from "@aws-sdk/types";
/**
* Represents the http options that can be passed to a browser http client.
*/
export interface FetchHttpHandlerOptions {
/**
* The number of milliseconds a request can take before being automatically
* terminated.
*/
requestTimeout?: number;
}
export declare class FetchHttpHandler implements HttpHandler {
private config?;
private readonly configProvider;
constructor(options?: FetchHttpHandlerOptions | Provider<FetchHttpHandlerOptions | undefined>);
destroy(): void;
handle(request: HttpRequest, { abortSignal }?: HttpHandlerOptions): Promise<{
response: HttpResponse;
}>;
}