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 | |
---|
1 | import Agent from './agent'
|
---|
2 | import buildConnector from './connector';
|
---|
3 | import Client from './client'
|
---|
4 | import Dispatcher from './dispatcher'
|
---|
5 | import { IncomingHttpHeaders } from './header'
|
---|
6 | import Pool from './pool'
|
---|
7 |
|
---|
8 | export default ProxyAgent
|
---|
9 |
|
---|
10 | declare 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 |
|
---|
17 | declare 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.