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