Sippet.Message.update_header_front

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

update_header_front(message, header, initial \\ nil, fun)

View Source

Specs

update_header_front(
  t(),
  header(),
  value() | nil,
  (multiple_value() -> multiple_value())
) :: t()

Updates the first header value in message with the given function.

If header is present in message with value [value], fun is invoked with for first element of [value] and its result is used as the new value of header front. If header is not present in message, or it is an empty list, initial is inserted as the single value of header.