1 | /// <reference types="express" />
|
2 | import { Request, RequestBodyParserOptions } from '../types';
|
3 | import { BodyParser, RequestBody } from './types';
|
4 | /**
|
5 | * Parsing the request body into Buffer
|
6 | */
|
7 | export 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 | }
|