UNPKG

443 BTypeScriptView Raw
1/// <reference types="express" />
2import { Request, RequestBodyParserOptions } from '../types';
3import { BodyParser, RequestBody } from './types';
4/**
5 * Parsing the request body into Buffer
6 */
7export declare class RawBodyParser implements BodyParser {
8 name: symbol;
9 private rawParser;
10 constructor(options?: RequestBodyParserOptions);
11 supports(mediaType: string): boolean;
12 parse(request: Request): Promise<RequestBody>;
13}