Page Contents
  
 
    
Home > @loopback/rest > BodyParser > supports
BodyParser.supports() method
Indicate if the given media type is supported
Signature:
supports(mediaType: string): boolean;
Parameters
| Parameter | Type | Description | 
|---|---|---|
| mediaType | string | Media type | 
Returns:
boolean