cookie_attrs() = #{expires => calendar:datetime(), max_age => calendar:datetime(), domain => binary(), path => binary(), secure => true, http_only => true, same_site => default | none | strict | lax}
cookie_opts() = #{domain => binary(), http_only => boolean(), max_age => non_neg_integer(), path => binary(), same_site => default | none | strict | lax, secure => boolean()}
| cookie/1 | |
| parse_cookie/1 | |
| parse_set_cookie/1 | |
| setcookie/3 |
cookie(Tail::[{iodata(), iodata()}]) -> iolist()
parse_cookie(Cookie::binary()) -> [{binary(), binary()}]
parse_set_cookie(SetCookie::binary()) -> {ok, binary(), binary(), cookie_attrs()} | ignore
setcookie(Name::iodata(), Value::iodata(), Opts::cookie_opts()) -> iolist()
Generated by EDoc