Interface IHttpBodyParserOptions

Options for a body parser function.

interface IHttpBodyParserOptions {
    limit?: Nilable<number>;
    onLimitReached?: Nilable<HttpRequestHandler>;
    onParsingFailed?: Nilable<ParseErrorHandler>;
}

Hierarchy

Properties

limit?: Nilable<number>

Defines the maximum size of the body, in bytes. (null) indicates to use NO limit

onLimitReached?: Nilable<HttpRequestHandler>

A custom handler, to tell the client, that the body is too big.

onParsingFailed?: Nilable<ParseErrorHandler>

A custom handler, to tell the client, that the body could not be parsed.

Generated using TypeDoc