Sippet.Message.to_protocol
You're seeing just the function
to_protocol
, go back to Sippet.Message module for more information.
Specs
Converts a string representing a known protocol into an atom, otherwise as an uppercase string.
Example:
iex> Sippet.Message.to_protocol("UDP")
:udp
iex> Sippet.Message.to_protocol("uDp")
:udp
iex> Sippet.Message.to_protocol("aaa")
"AAA"