---
lang: en
title: 'API docs: rest-msgpack.msgpackbodyparsercomponent._constructor_'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/bodyparsers/rest-msgpack
permalink: /doc/en/lb4/apidocs.rest-msgpack.msgpackbodyparsercomponent._constructor_.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/rest-msgpack](./rest-msgpack.md) &gt; [MsgPackBodyParserComponent](./rest-msgpack.msgpackbodyparsercomponent.md) &gt; [(constructor)](./rest-msgpack.msgpackbodyparsercomponent._constructor_.md)

## MsgPackBodyParserComponent.(constructor)

Constructs a new instance of the `MsgPackBodyParserComponent` class

<b>Signature:</b>

```typescript
constructor(rawBodyParser?: RawBodyParser);
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  rawBodyParser | [RawBodyParser](./rest.rawbodyparser.md) |  |


