View Source LastCrusader.Utils.Http (Last Crusader v0.11.0)

Utils for easy HTTP manipulation

Summary

Functions

Transforms a list of tuples into a Map

Add key-value header(s) to HTTP response

Functions

@spec as_map([tuple()]) :: map()

Transforms a list of tuples into a Map

Link to this function

put_headers(conn, key_values)

View Source
@spec put_headers(Plug.Conn.t(), map()) :: Plug.Conn.t()

Add key-value header(s) to HTTP response