Sourceval is_cookie : string -> bool Sourcetype cookie = {key : string;value : string;attributes : (string * string option) list;
} Sourceval cookie : string -> (string * string) option Sourceval attribute : string -> (string * string option) option Sourceval all_cookies : (string * string) list -> cookie list Sourceval to_key_values : cookie -> string * (string * (string * string option) list) Sourceval err_cookie : [> `Invalid_encrypted_cookie ] Sourcetype error = [ | `Invalid_encrypted_cookie| `Msg of string| `Not_found
] Sourceval get :
?encrypted:bool ->
name:string ->
Vif_core__.Vif_server.t ->
'a Vif_core__.Vif_request0.t ->
(string, [> `Invalid_encrypted_cookie | `Msg of string | `Not_found ]) result Sourcetype config = {expires : float option;max_age : float option;domain : [ `host ] Domain_name.t option;path : bool;secure : bool;http_only : bool;same_site : [ `Strict | `Lax | `None ];
} Sourceval config :
?expires:float ->
?max_age:float ->
?domain:[ `host ] Domain_name.t ->
?path:bool ->
?secure:bool ->
?http_only:bool ->
?same_site:[ `Lax | `None | `Strict ] ->
unit ->
config Sourceval set_cookie : config -> path:string -> string -> string -> string Sourceval random : int -> string Sourceval set :
?encrypt:bool ->
?cfg:config ->
?path:string ->
name:string ->
Vif_core__.Vif_server.t ->
('a, 'b, 'c) Vif_core__.Vif_request.t ->
string ->
('d, 'd, unit) Vif_core__.Vif_response.t