@prostory/mountain
Version:
Yet another HTTP/2 server and client.
10 lines (9 loc) • 391 B
TypeScript
import { IncomingHttpHeaders, IncomingHttpStatusHeader } from 'http2';
export declare const createUrl: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader) => URL;
/**
* Removes trailing slash character and adds
* leading one.
*/
export declare const normalize: (path: string) => string;
/** Adds RegExp's bounds to path. */
export declare const addBounds: (path: string) => string;