ios-dev/comments/Home/node_modules/@tinyhttp/forwarded/dist/index.d.ts

11 lines
389 B
TypeScript

/// <reference types="node" />
import { IncomingMessage } from 'node:http';
/**
* Get all addresses in the request, using the `X-Forwarded-For` header.
*/
export declare function forwarded(req: Pick<IncomingMessage, 'headers' | 'socket'>): string[];
/**
* Parse the X-Forwarded-For header.
*/
export declare function parse(header: string): string[];
//# sourceMappingURL=index.d.ts.map