package simple_httpd

  1. Overview
  2. Docs

Module Simple_httpd.CookiesSource

Module to handle cookies

Cookies

Cookies are data that are maintend both on server and clients. This is a module to get and set cookies in the headers.

Sourcetype same_site =
  1. | None
  2. | Lax
  3. | Strict
Sourcetype t = cookie list
Sourceval empty : t
Sourceval parse : string -> t
Sourceval add : cookie -> t -> t
Sourceval create : ?path:string -> ?domain:string -> ?expires:Unix.tm -> ?max_age:int64 -> ?secure:bool -> ?http_only:bool -> ?same_site:same_site -> ?extension:string -> name:string -> string -> t -> t
Sourceval value : cookie -> string
Sourceval name : cookie -> string
Sourceval get : string -> t -> Cookies.cookie