Sippet.Message.to_protocol

You're seeing just the function to_protocol, go back to Sippet.Message module for more information.

Specs

to_protocol(String.t()) :: protocol()

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"