1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | import { IncomingMessage } from 'http';
|
8 |
|
9 | export = proxyAddr;
|
10 |
|
11 | declare function proxyAddr(req: IncomingMessage, trust: proxyAddr.Address | proxyAddr.Address[] | ((addr: string, i: number) => boolean)): string;
|
12 |
|
13 | declare namespace proxyAddr {
|
14 | function all(req: IncomingMessage, trust?: Address | Address[] | ((addr: string, i: number) => boolean)): string[];
|
15 | function compile(val: Address | Address[]): (addr: string, i: number) => boolean;
|
16 |
|
17 | type Address = 'loopback' | 'linklocal' | 'uniquelocal' | string;
|
18 | }
|