@loopback/docs
Version:
Documentation for LoopBack 4
32 lines (20 loc) • 710 B
Markdown
lang: en
title: 'API docs: rest.streambodyparser.supports'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.rest.streambodyparser.supports.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/rest](./rest.md) > [StreamBodyParser](./rest.streambodyparser.md) > [supports](./rest.streambodyparser.supports.md)
## StreamBodyParser.supports() method
<b>Signature:</b>
```typescript
supports(mediaType: string): boolean;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| mediaType | <code>string</code> | |
<b>Returns:</b>
`boolean`