Page Contents
Home > @loopback/rest > RestServer > bodyParser
RestServer.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: