Cookies.Make
Creates a fresh cookie store.
val clear : unit -> unit
clear () removes all cookies from the store.
clear ()
val remove_expired_cookies : unit -> unit
remove_expired_cookies removes from the store the cookies whose expiration date is reached (using Unix.time).
remove_expired_cookies
Unix
val add_cookie : Iri.t -> Cohttp.Cookie.Set_cookie_hdr.t -> unit
A a cookie for the given IRI and header.
val cookies_by_iri : Iri.t -> Cohttp.Cookie.cookie list
Returns cookies associated to the given IRI.