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

main
Last change on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

F4 Finalna Verzija

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