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:??? -> 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:??? -> ?max_age:??? -> ?domain:??? -> ?path:??? -> ?secure:??? -> ?http_only:??? -> ?same_site:??? -> unit -> config
Sourceval random : int -> string
Sourceval set : ?encrypt:??? -> ?cfg:??? -> ?path:??? -> name:string -> Vif_core__.Vif_server.t -> ('a, 'b, 'c) Vif_core__.Vif_request.t -> string -> ('d, 'd, unit) Vif_core__.Vif_response.t