Page Contents

Home > @loopback/rest > getParserOptions

getParserOptions() function

Extract parser options based on the parser type

Signature:

export declare function getParserOptions(type: 'json', options: RequestBodyParserOptions): OptionsJson;

Parameters

Parameter Type Description
type ‘json’ json|urlencoded|text
options RequestBodyParserOptions  

Returns:

OptionsJson