UNPKG

@aws-sdk/fetch-http-handler

Version:
17 lines (14 loc) 607 B
import { HttpHandler, HttpRequest, HttpResponse } from "@aws-sdk/protocol-http"; import { HttpHandlerOptions, Provider } from "@aws-sdk/types"; export interface FetchHttpHandlerOptions { 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; }>; }