package ocsigenserver
Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=acb09f06430cb8eefd83a849af6450af
sha512=f2c5111a02989572a19706ca5238d3740c4c06d97b0e1791ae0e06665666574ada94421d10edee636042984ab9df6357b4febbb4edc34b01e72619027b95bfec
doc/ocsigenserver.cookies/Ocsigen_cookie_map/index.html
Module Ocsigen_cookie_map
module Map_path : Map.S with type key := Ocsigen_lib_base.Url_base.pathThis type of maps is used to store cookie values for each path. The key has type Url.path option: it is for the path (default: root of the site).
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).
type t = cookie Map_inner.t Map_path.tval empty : tval add : path:Ocsigen_lib_base.Url_base.path -> string -> cookie -> t -> tadd ~path c v m adds the cookie c to m.
If the cookie is already bound, the previous binding disappear.
add_multi new old adds the cookies from new to old. If cookies are already bound in oldcookies, the previous binding disappear.
val remove : path:Ocsigen_lib_base.Url_base.path -> string -> t -> tremove c cookie_table removes the cookie c from m.
Warning: it is not equivalent to add ... OUnset ...).
module Poly : sig ... endPolymorphic versions of add and remove to use when we don't need to OUnset (client-side)