Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
46 lines
1.9 KiB
Text
46 lines
1.9 KiB
Text
import type { HttpHandler, HttpRequest } from "@smithy/protocol-http";
|
|
import { HttpResponse } from "@smithy/protocol-http";
|
|
import type { HttpHandlerOptions, Logger, NodeHttpHandlerOptions, Provider } from "@smithy/types";
|
|
import { Agent as hAgent } from "http";
|
|
import { Agent as hsAgent } from "https";
|
|
export { NodeHttpHandlerOptions };
|
|
/**
|
|
* @public
|
|
* A default of 0 means no timeout.
|
|
*/
|
|
export declare const DEFAULT_REQUEST_TIMEOUT = 0;
|
|
/**
|
|
* @public
|
|
* A request handler that uses the Node.js http and https modules.
|
|
*/
|
|
export declare class NodeHttpHandler implements HttpHandler<NodeHttpHandlerOptions> {
|
|
private config?;
|
|
private configProvider;
|
|
private socketWarningTimestamp;
|
|
private externalAgent;
|
|
readonly metadata: {
|
|
handlerProtocol: string;
|
|
};
|
|
/**
|
|
* @returns the input if it is an HttpHandler of any class,
|
|
* or instantiates a new instance of this handler.
|
|
*/
|
|
static create(instanceOrOptions?: HttpHandler<any> | NodeHttpHandlerOptions | Provider<NodeHttpHandlerOptions | void>): NodeHttpHandler | HttpHandler<any>;
|
|
/**
|
|
* @internal
|
|
*
|
|
* @param agent - http(s) agent in use by the NodeHttpHandler instance.
|
|
* @param socketWarningTimestamp - last socket usage check timestamp.
|
|
* @param logger - channel for the warning.
|
|
* @returns timestamp of last emitted warning.
|
|
*/
|
|
static checkSocketUsage(agent: hAgent | hsAgent, socketWarningTimestamp: number, logger?: Logger): number;
|
|
constructor(options?: NodeHttpHandlerOptions | Provider<NodeHttpHandlerOptions | void>);
|
|
private resolveDefaultConfig;
|
|
destroy(): void;
|
|
handle(request: HttpRequest, { abortSignal, requestTimeout }?: HttpHandlerOptions): Promise<{
|
|
response: HttpResponse;
|
|
}>;
|
|
updateHttpClientConfig(key: keyof NodeHttpHandlerOptions, value: NodeHttpHandlerOptions[typeof key]): void;
|
|
httpHandlerConfigs(): NodeHttpHandlerOptions;
|
|
}
|