hackney_cookie (hackney v1.24.0)
View SourceSummary
Functions
Parse a cookie header string and return a list of key/values.
Convert a cookie name, value and options to its iodata form.
Types
-type cookie_option() :: {max_age, non_neg_integer()} | {domain, binary()} | {path, binary()} | {secure, boolean()} | {http_only, boolean()}.
-type cookie_opts() :: [cookie_option()].
Functions
Parse a cookie header string and return a list of key/values.
-spec setcookie(iodata(), iodata(), cookie_opts()) -> binary().
Convert a cookie name, value and options to its iodata form.