Lob.encode

You're seeing just the function encode, go back to Lob module for more information.

Specs

encode(maybe_binary() | map(), maybe_binary()) :: binary() | no_return()

Encode a head and body into a packet

The packet should be usable across any supported transport. May raise an exception if the payload is too large or there are encoding errors.