extras v0.1.1 Plug.Conn.Extra
Link to this section Summary
Functions
Get first header that matches key
Link to this section Functions
Link to this function
get_first_req_header(conn, key)
Get first header that matches key
Example:
iex> Plug.Conn.Extra.get_first_req_header(
...> %Plug.Conn{req_headers: [{"x-hello", "world"}]}, "x-hello"
...> )
"world"