UNPKG

@loopback/docs

Version:

Documentation files rendered at [https://loopback.io](https://loopback.io)

106 lines (52 loc) 1.43 kB
--- lang: en title: 'API docs: rest.bodyparser' keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI sidebar: lb4_sidebar editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/rest permalink: /doc/en/lb4/apidocs.rest.bodyparser.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/rest](./rest.md) &gt; [BodyParser](./rest.bodyparser.md) ## BodyParser interface Interface to be implemented by body parser extensions **Signature:** ```typescript export interface BodyParser ``` ## Properties <table><thead><tr><th> Property </th><th> Modifiers </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td markdown="1"> [name](./rest.bodyparser.name.md) </td><td markdown="1"> </td><td markdown="1"> string \| symbol </td><td markdown="1"> Name of the parser </td></tr> </tbody></table> ## Methods <table><thead><tr><th> Method </th><th> Description </th></tr></thead> <tbody><tr><td markdown="1"> [parse(request)](./rest.bodyparser.parse.md) </td><td markdown="1"> Parse the request body </td></tr> <tr><td markdown="1"> [supports(mediaType)](./rest.bodyparser.supports.md) </td><td markdown="1"> Indicate if the given media type is supported </td></tr> </tbody></table>