extras v0.1.0 Plug.Conn.Extra

Link to this section Summary

Functions

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”

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”