Interface IBufferOptions

Options for 'buffer()' function.

interface IBufferOptions {
    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