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

as_map(list_of_tuples)

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

Transforms a list of tuples into a Map

put_headers(conn, key_values)

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

Add key-value header(s) to HTTP response