Sippet.Message.to_method

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

Specs

to_method(String.t()) :: method()

Converts a string representing a known method into an atom, otherwise as an uppercase string.

Example:

iex> Sippet.Message.to_method("INVITE")
:invite

iex> Sippet.Message.to_method("InViTe")
:invite

iex> Sippet.Message.to_method("aaa")
"AAA"