@sigiljs/sigil
Version:
TypeScript-first Node.js HTTP framework offering schema-driven routing, modifier-based middleware, plugin extensibility, and flexible response templating
11 lines (10 loc) • 523 B
TypeScript
import { Internal } from '../../types';
/**
* Handler for application/x-www-form-urlencoded payloads.
* Reads the request body into a Buffer and wraps it as the request body.
*
* @param req verified incoming HTTP message to parse.
* @returns promise resolving to a RequestProcessorResponse containing
* an IncomingBody with the buffered data or null, and no files.
*/
export default function urlencodedFormHandler(req: Internal.Requests.VerifiedIncomingMessage): Promise<Internal.Requests.RequestProcessorResponse>;