UNPKG

@prostory/mountain

Version:

Yet another HTTP/2 server and client.

12 lines (11 loc) 627 B
import { Http2Stream, IncomingHttpHeaders, IncomingHttpStatusHeader } from 'http2'; import { FormDataDecoded, FormDataOptions } from '../../types'; /** * Parses request with `multipart/form-data`. * All files will be written to disk in _current * working directory_. You can specify deeper path * by providing **options.directory** field. * @returns object with key/value pairs. Value can * be either text data or object with file stats. */ export declare const formData: <T extends FormDataDecoded>(stream: Http2Stream, headers: IncomingHttpHeaders & IncomingHttpStatusHeader, options?: FormDataOptions) => Promise<T>;