new wrap(payload, headers)
Wraps the given payload and headers in a new Envelope instance.
Parameters:
| Name | Type | Description |
|---|---|---|
payload |
* | |
headers |
Object |
- Source:
Wraps the given payload and headers in a new Envelope instance.
| Name | Type | Description |
|---|---|---|
payload |
* | |
headers |
Object |