package vif

  1. Overview
  2. Docs
A simple web framework for OCaml 5

Install

dune-project
 Dependency

Authors

Maintainers

Sources

vif-0.0.1.beta4.tbz
sha256=0327abf4e7434e5de402661cc8c29c0539501269401670fed773b0dfc14e26aa
sha512=1ff5dddecf25b41986ea629bda336a990800db8410498682bf96af2b1afab74ae57172ee8d41087f131c9ceeb3255c96351668664e36c6815a249157afd05a5d

doc/vif.core/Vif_core/Cookie/index.html

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