Conveniences for encoding and decoding cookies.
Decodes the given cookies as given in either a request or response header.
Encodes the given cookies as expected in a response header.
Decodes the given cookies as given in either a request or response header.
If a cookie is invalid, it is automatically discarded from the result.
iex> decode("key1=value1;key2=value2") %{"key1" => "value1", "key2" => "value2"}
Encodes the given cookies as expected in a response header.
© 2013 Plataformatec
Licensed under the Apache License, Version 2.0.
https://hexdocs.pm/plug/Plug.Conn.Cookies.html