Module hackney_cookie

Data Types

cookie_option()

cookie_option() = {max_age, non_neg_integer()} | {domain, binary()} | {path, binary()} | {secure, boolean()} | {http_only, boolean()}

cookie_opts()

cookie_opts() = [cookie_option()]

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()}] | {error, badarg}

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

setcookie/3

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

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


Generated by EDoc, Dec 7 2015, 13:14:08.