Fetch.Response (Fetch v0.1.0)
View SourceAn HTTP response.
Header names are lowercase. Order and duplicate headers are preserved, so
headers is a list, not a map: set-cookie for example is commonly sent
several times.
Summary
Functions
Returns all values of a header, in the order they were received.
Types
Functions
Returns all values of a header, in the order they were received.
iex> response = %Fetch.Response{status: 200, headers: [{"set-cookie", "a=1"}, {"set-cookie", "b=2"}]}
iex> Fetch.Response.get_header(response, "Set-Cookie")
["a=1", "b=2"]