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>
28 lines
1.2 KiB
Text
28 lines
1.2 KiB
Text
/// <reference types="node" />
|
|
import { ClientRequest, IncomingHttpHeaders, RequestOptions as HTTPRequestOptions } from 'node:http';
|
|
import { RequestOptions as HTTPSRequestOptions } from 'node:https';
|
|
export type HTTPModuleRequestOptions = HTTPRequestOptions | HTTPSRequestOptions | string | URL;
|
|
/**
|
|
* Cut version of http.IncomingMessage.
|
|
* Some transports work in a special Javascript environment where http.IncomingMessage is not available.
|
|
*/
|
|
export interface HTTPModuleRequestIncomingMessage {
|
|
headers: IncomingHttpHeaders;
|
|
statusCode?: number;
|
|
on(event: 'data' | 'end', listener: (chunk: Buffer) => void): void;
|
|
off(event: 'data' | 'end', listener: (chunk: Buffer) => void): void;
|
|
setEncoding(encoding: string): void;
|
|
}
|
|
/**
|
|
* Internal used interface for typescript.
|
|
* @hidden
|
|
*/
|
|
export interface HTTPModule {
|
|
/**
|
|
* Request wrapper
|
|
* @param options These are {@see TransportOptions}
|
|
* @param callback Callback when request is finished
|
|
*/
|
|
request(options: HTTPModuleRequestOptions, callback?: (res: HTTPModuleRequestIncomingMessage) => void): ClientRequest;
|
|
}
|
|
//# sourceMappingURL=http-module.d.ts.map
|