Module Http.Cookie

type expiration = [
| `Session

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

| `Max_age(int64)

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

];

example: * __cfduid=d90aa986407a12a7a981f1cccf8cb663a1564556010; * expires=Thu, 30-Jul-20 06:53:30 GMT; * path=/; * domain=.strid.dev; * HttpOnly; * Secure

type t = {
cookie: cookie,
expiration: expiration,
domain: option(string),
path: option(string),
secure: bool,
http_only: bool,
};