snowflake-sdk
Version:
Node.js driver for Snowflake
22 lines (21 loc) • 788 B
TypeScript
import * as tls from 'tls';
import * as http from 'http';
import { HttpsProxyAgent } from 'https-proxy-agent';
import { AgentConnectOpts } from 'agent-base';
import { CRLValidatorConfig } from './crl_validator';
export type SnowflakeHttpsProxyAgentOptions = AgentConnectOpts & {
crlValidatorConfig: CRLValidatorConfig;
host: string;
port: string;
protocol: string;
useForOCSP: boolean;
user?: string;
password?: string;
};
declare class SnowflakeHttpsProxyAgent extends HttpsProxyAgent<string> {
private useForOCSP;
private crlValidatorConfig;
constructor(opts: SnowflakeHttpsProxyAgentOptions);
connect(req: http.ClientRequest, opts: AgentConnectOpts): Promise<tls.TLSSocket | import("net").Socket>;
}
export default SnowflakeHttpsProxyAgent;