Mojito.Headers.normalize

You're seeing just the function normalize, go back to Mojito.Headers module for more information.

Specs

normalize(headers()) :: headers()

Returns a copy of the given headers where all header names are lowercased and multiple values for the same header have been joined with ",".

Example:

iex> headers = [
...>   {"header1", "foo"},
...>   {"header2", "bar"},
...>   {"Header1", "baz"}
...> ]
iex> Mojito.Headers.normalize(headers)
[{"header1", "foo,baz"}, {"header2", "bar"}]