UNPKG

@adonisjs/bodyparser

Version:

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

12 lines (11 loc) 335 B
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; }>;