source: node_modules/undici/types/proxy-agent.d.ts

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 836 bytes
Line 
1import Agent from './agent'
2import buildConnector from './connector';
3import Client from './client'
4import Dispatcher from './dispatcher'
5import { IncomingHttpHeaders } from './header'
6import Pool from './pool'
7
8export default ProxyAgent
9
10declare class ProxyAgent extends Dispatcher {
11 constructor(options: ProxyAgent.Options | string)
12
13 dispatch(options: Agent.DispatchOptions, handler: Dispatcher.DispatchHandlers): boolean;
14 close(): Promise<void>;
15}
16
17declare namespace ProxyAgent {
18 export interface Options extends Agent.Options {
19 uri: string;
20 /**
21 * @deprecated use opts.token
22 */
23 auth?: string;
24 token?: string;
25 headers?: IncomingHttpHeaders;
26 requestTls?: buildConnector.BuildOptions;
27 proxyTls?: buildConnector.BuildOptions;
28 clientFactory?(origin: URL, opts: object): Dispatcher;
29 }
30}
Note: See TracBrowser for help on using the repository browser.