Page Contents

Home > @loopback/rest > RequestBodyParserOptions

RequestBodyParserOptions interface

Options for request body parsing See

Built-in parsers retrieve their own options from the request body parser options. The parser specific properties override common ones.


export interface RequestBodyParserOptions extends Options 

Extends: Options


Property Modifiers Type Description
json?   OptionsJson (Optional) Options for json parser
raw?   Options (Optional) Options for raw parser
text?   OptionsText (Optional) Options for text parser
urlencoded?   OptionsUrlencoded (Optional) Options for urlencoded parser
validation?   ValidationOptions (Optional) Validation options for AJV, see This setting is global for all request body parsers and it cannot be overridden inside parser specific properties such as json or text.