UNPKG

933 BTypeScriptView Raw
1import { AbsoluteLocation, BuildHandlerOptions, BuildMiddleware, Pluggable, RequestHandler } from "@smithy/types";
2/**
3 * @public
4 */
5export interface HostHeaderInputConfig {
6}
7interface PreviouslyResolved {
8 requestHandler: RequestHandler<any, any>;
9}
10export interface HostHeaderResolvedConfig {
11 /**
12 * The HTTP handler to use. Fetch in browser and Https in Nodejs.
13 */
14 requestHandler: RequestHandler<any, any>;
15}
16export declare function resolveHostHeaderConfig<T>(input: T & PreviouslyResolved & HostHeaderInputConfig): T & HostHeaderResolvedConfig;
17export declare const hostHeaderMiddleware: <Input extends object, Output extends object>(options: HostHeaderResolvedConfig) => BuildMiddleware<Input, Output>;
18export declare const hostHeaderMiddlewareOptions: BuildHandlerOptions & AbsoluteLocation;
19export declare const getHostHeaderPlugin: (options: HostHeaderResolvedConfig) => Pluggable<any, any>;
20export {};