UNPKG

@adonisjs/bodyparser

Version:

BodyParser middleware for AdonisJS http server to read and parse request body

13 lines (12 loc) 391 B
/// <reference types="node" resolution-mode="require"/> import type { IncomingMessage } from 'node:http'; import { BodyParserFormConfig } from '../types.js'; /** * Parse x-www-form-urlencoded request body */ export declare function parseForm(req: IncomingMessage, options: Partial<BodyParserFormConfig>): Promise<{ parsed: { [key: string]: unknown; }; raw: string; }>;