Class: wrap

Envelope.wrap(payload, headers)

new wrap(payload, headers)

Wraps the given payload and headers in a new Envelope instance.

Parameters:
Name Type Description
payload *
headers Object
Source: