package vif

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

vif-0.0.1.beta2.tbz
sha256=a16ff3dba7675d237d59188b032052b383ad9e367eb7c570c4e6e78b978b98e5
sha512=ad553f15f33f9f2427b691713f630476fd1f15b4cb61944a401cfb35c29dd3d1d3760b02dd211bddd39b6cf6ccc8ea5d9f88eefc3776611e2a7020242a16b9a9

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: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