@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
33 lines (21 loc) • 792 B
Markdown
lang: en
title: 'API docs: rest.textbodyparser.supports'
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.textbodyparser.supports.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/rest](./rest.md) > [TextBodyParser](./rest.textbodyparser.md) > [supports](./rest.textbodyparser.supports.md)
## TextBodyParser.supports() method
<b>Signature:</b>
```typescript
supports(mediaType: string): boolean;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| mediaType | string | |
<b>Returns:</b>
boolean