cohttp

An OCaml library for HTTP clients and servers
Library cohttp
Module Cohttp . Cookie
type expiration = [
| `Session(*

Instructs the user agent to discard the cookie unconditionally when the user agent terminates.

*)
| `Max_age of int64(*

The value of the Max-Age attribute is delta-seconds, the lifetime of the cookie in seconds, a decimal non-negative integer.

*)
]

Lifetime of the cookie after which the user agent discards it

val sexp_of_expiration : expiration -> Sexplib0.Sexp.t
val expiration_of_sexp : Sexplib0.Sexp.t -> expiration
val __expiration_of_sexp__ : Sexplib0.Sexp.t -> expiration

A cookie is simply a key/value pair send from the client to the server