Module Cookie
type header= string * stringA standard header type used in many web frameworks like Httpaf and Cohttp
val header_of_string : string -> header optionparses
"Cookie: foo=bar"into("Cookie", "foo=bar")
type expires=[|`Session|`MaxAge of int64|`Date of Ptime.t]expiresdescribes when a cookie will expire.`Session- nothing will be set`MaxAge- Max-Age will be set with the number`Date- Expires will be set with a date
type same_site=[|`None|`Strict|`Lax]type cookie= string * stringThe
cookietype is a tuple of(name, value)
type t={expires : expires;scope : Uri.t;same_site : same_site;secure : bool;http_only : bool;value : string * string;}
val make : ?expires:expires -> ?scope:Uri.t -> ?same_site:same_site -> ?secure:bool -> ?http_only:bool -> cookie -> tmakecreates a cookie, it will default to the following values:
val of_set_cookie_header : ?origin:string -> header -> t optionval to_set_cookie_header : t -> headerval to_cookie_header : ?now:Ptime.t -> ?elapsed:int64 -> ?scope:Uri.t -> t list -> headerval cookies_of_header : header -> cookie list
module Date : sig ... end