1 |
|
2 | import { HttpHandler, HttpRequest, HttpResponse } from "@aws-sdk/protocol-http";
|
3 | import { HttpHandlerOptions, Provider } from "@aws-sdk/types";
|
4 | import { Agent as hAgent } from "http";
|
5 | import { Agent as hsAgent } from "https";
|
6 |
|
7 |
|
8 |
|
9 | export interface NodeHttpHandlerOptions {
|
10 | |
11 |
|
12 |
|
13 |
|
14 | connectionTimeout?: number;
|
15 | |
16 |
|
17 |
|
18 |
|
19 | socketTimeout?: number;
|
20 | httpAgent?: hAgent;
|
21 | httpsAgent?: hsAgent;
|
22 | }
|
23 | export declare class NodeHttpHandler implements HttpHandler {
|
24 | private config?;
|
25 | private readonly configProvider;
|
26 | readonly metadata: {
|
27 | handlerProtocol: string;
|
28 | };
|
29 | constructor(options?: NodeHttpHandlerOptions | Provider<NodeHttpHandlerOptions | void>);
|
30 | private resolveDefaultConfig;
|
31 | destroy(): void;
|
32 | handle(request: HttpRequest, { abortSignal }?: HttpHandlerOptions): Promise<{
|
33 | response: HttpResponse;
|
34 | }>;
|
35 | }
|