Page Contents

Home > @loopback/rest > createBodyParserBinding

createBodyParserBinding() function

Create a binding for the given body parser class

Signature:

export declare function createBodyParserBinding(parserClass: Constructor<BodyParser>, key?: BindingAddress<BodyParser>): Binding<BodyParser>;

Parameters

Parameter Type Description
parserClass Constructor<BodyParser> Body parser class
key BindingAddress<BodyParser> (Optional) Optional binding address

Returns:

Binding<BodyParser>