package vif

  1. Overview
  2. Docs

Module Vif_core.CookieSource

Sourceval src : Logs.src
Sourceval attribute : string -> (string * string option) option
Sourceval all_cookies : (string * string) list -> cookie list
Sourceval without_prefix : (bool * bool) -> cookie -> cookie
Sourceval filter_secure : 'a Vif_core__.Vif_request0.t -> cookie list -> cookie list
Sourceval to_key_values : cookie -> string * (string * (string * string option) list)
Sourceval guard : 'a -> (unit -> bool) -> (unit, 'a) result
Sourcetype error = [
  1. | `Msg of string
  2. | `Not_found
]
Sourceval pp_error : Format.formatter -> [< `Invalid_encrypted_cookie | `Msg of string | `Not_found ] -> unit
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 = {
  1. expires : float option;
  2. max_age : float option;
  3. domain : [ `host ] Domain_name.t option;
  4. path : bool;
  5. secure : bool;
  6. http_only : bool;
  7. same_site : [ `Strict | `Lax | `None ];
}
Sourceval default_config : config
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 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