Conduit v0.7.0 Conduit.ContentType.Text
Handles converting a message body to and from Text.
Summary
Functions
Formats the message body to json and sets the content type
Parses the message body from json and sets the content type
Functions
Formats the message body to json and sets the content type.
Examples
iex> import Conduit.Message
iex> message =
iex> %Conduit.Message{}
iex> |> put_body("my message")
iex> |> Conduit.ContentType.Text.format([])
iex> message.body
"my message"
iex> message.content_type
"text/plain"