:sig
..end
module CookiesTable:Map.S
with type key = string
module Cookies:Map.S
with type key = Url.path
This table is to store cookie values for each path.
=
| |
of |
| |
|
Type used for cookies to set. The float option is the timestamp for the expiration date. The string is the value. If the bool is true and the protocol is https, the cookie will be secure (will ask the browser to send it only through secure connections).
cookie CookiesTable.t
Cookies.t
= 'a CookiesTable.t Cookies.t
: Ocsigen_lib.Url.path ->
string ->
'a ->
'a CookiesTable.t Cookies.t ->
'a CookiesTable.t Cookies.t
: add_cookie path c v cookie_table
adds the cookie c
to the table cookie_table
.
If the cookie is already bound, the previous binding disappear.
Ocsigen_lib.Url.path ->
string ->
'a CookiesTable.t Cookies.t ->
'a CookiesTable.t Cookies.t
: remove_cookie c cookie_table
removes the cookie c
from the table cookie_table
.
Warning: it is not equivalent to add_cookie ... OUnset ...
).
cookie CookiesTable.t
Cookies.t ->
cookie CookiesTable.t
Cookies.t ->
cookie CookiesTable.t
Cookies.t
: add_cookies newcookies oldcookies
adds the cookies from newcookies
to oldcookies
. If cookies are already bound in oldcookies,
the previous binding disappear.