Page Contents
Home > @loopback/rest > RestApplication > bodyParser
RestApplication.bodyParser() method
Bind a body parser to the server context
Signature:
bodyParser(bodyParserClass: Constructor<BodyParser>, address?: BindingAddress<BodyParser>): Binding<BodyParser>;
Parameters
Parameter | Type | Description |
---|---|---|
bodyParserClass | Constructor<BodyParser> | |
address | BindingAddress<BodyParser> | (Optional) Optional binding address |
Returns: