Conduit v0.1.1 Conduit.Encoding.Identity

Does nothing to the body of the message. Sets the content encoding to identity.

Summary

Functions

Decodes the message body from gzip and sets the content encoding

Does nothing to the body and sets the content encoding to identity

Functions

decode(message, opts)

Decodes the message body from gzip and sets the content encoding.

Examples

iex> import Conduit.Message
iex> message =
iex>   %Conduit.Message{}
iex>   |> put_body("{}")
iex>   |> Conduit.Encoding.Identity.decode([])
iex> message.body
"{}"
iex> get_meta(message, :content_encoding)
"identity"
encode(message, opts)

Does nothing to the body and sets the content encoding to identity.

Examples

iex> import Conduit.Message
iex> message =
iex>   %Conduit.Message{}
iex>   |> put_body("{}")
iex>   |> Conduit.Encoding.Identity.encode([])
iex> message.body
"{}"
iex> get_meta(message, :content_encoding)
"identity"