Module cow_cookie

Data Types

cookie_opts()

cookie_opts() = #{domain => binary(), http_only => boolean(), max_age => non_neg_integer(), path => binary(), same_site => lax | strict, secure => boolean()}

Function Index

parse_cookie/1Parse a cookie header string and return a list of key/values.
setcookie/3Convert a cookie name, value and options to its iodata form.

Function Details

parse_cookie/1

parse_cookie(Cookie::binary()) -> [{binary(), binary()}]

Parse a cookie header string and return a list of key/values.

setcookie/3

setcookie(Name::iodata(), Value::iodata(), Opts::cookie_opts()) -> iolist()

Convert a cookie name, value and options to its iodata form.


Generated by EDoc