Sippet.Message.pop_header_back
You're seeing just the function
pop_header_back
, go back to Sippet.Message module for more information.
Specs
Returns and removes the last value associated with header
in message
.
If header
is present in message
with values values
,
{List.last(values), new_message}
is returned where new_message
is the
result of removing List.last(values)
from header
. If header
is not
present in message
or it is an empty list, {default, message}
is
returned. When the header
results in an empty list, message
gets updated
by removing the header.