Page Contents
Home > @loopback/rest > RequestBodyParser > (constructor)
RequestBodyParser.(constructor)
Constructs a new instance of the RequestBodyParser class
Signature:
constructor(parsers?: BodyParser[], ctx?: Context | undefined);
Parameters
| Parameter | Type | Description |
|---|---|---|
| parsers | [BodyParser](/doc/en/lb4/apidocs.rest.bodyparser.html)\[\] | _(Optional)_ |
| ctx | [Context](/doc/en/lb4/apidocs.context.context.html) \| undefined | _(Optional)_ |