Initial project import
This commit is contained in:
24
node_modules/stripe/cjs/net/NodeHttpClient.d.ts
generated
vendored
Normal file
24
node_modules/stripe/cjs/net/NodeHttpClient.d.ts
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
/// <reference types="node" />
|
||||
/// <reference types="node" />
|
||||
import * as http_ from 'http';
|
||||
import * as https_ from 'https';
|
||||
import { RequestHeaders } from '../Types.js';
|
||||
import { HttpClient, HttpClientResponse, NodeHttpClientInterface, NodeHttpClientResponseInterface } from './HttpClient.js';
|
||||
/**
|
||||
* HTTP client which uses the Node `http` and `https` packages to issue
|
||||
* requests.`
|
||||
*/
|
||||
export declare class NodeHttpClient extends HttpClient implements NodeHttpClientInterface {
|
||||
_agent?: http_.Agent | https_.Agent | undefined;
|
||||
constructor(agent?: http_.Agent | https_.Agent);
|
||||
/** @override. */
|
||||
getClientName(): string;
|
||||
makeRequest(host: string, port: string, path: string, method: string, headers: RequestHeaders, requestData: string, protocol: string, timeout: number): Promise<NodeHttpClientResponseInterface>;
|
||||
}
|
||||
export declare class NodeHttpClientResponse extends HttpClientResponse implements NodeHttpClientResponseInterface {
|
||||
_res: http_.IncomingMessage;
|
||||
constructor(res: http_.IncomingMessage);
|
||||
getRawResponse(): http_.IncomingMessage;
|
||||
toStream(streamCompleteCallback: () => void): http_.IncomingMessage;
|
||||
toJSON(): any;
|
||||
}
|
||||
Reference in New Issue
Block a user