@prostory/mountain
Version:
Yet another HTTP/2 server and client.
7 lines (6 loc) • 354 B
TypeScript
import { Http2Stream, IncomingHttpHeaders, IncomingHttpStatusHeader } from 'http2';
/**
* Parses request with `application/x-www-form-urlencoded`.
* @returns object with key/value pairs.
*/
export declare const urlencoded: <T extends Record<string, string>>(stream: Http2Stream, headers: IncomingHttpHeaders & IncomingHttpStatusHeader) => Promise<T>;