package yurt

  1. Overview
  2. Docs

Module Yurt_header.CookieSource

include module type of struct include Cohttp.Cookie.Set_cookie_hdr end
type t = Cohttp__Cookie.Set_cookie_hdr.t = {
  1. cookie : Cohttp__Cookie.cookie;
  2. expiration : Cohttp__Cookie.expiration;
  3. domain : string option;
  4. path : string option;
  5. secure : bool;
  6. http_only : bool;
}
val t_of_sexp : Sexplib0__.Sexp.t -> t
val sexp_of_t : t -> Sexplib0__.Sexp.t
val make : ?expiration:Cohttp__Cookie.expiration -> ?path:string -> ?domain:string -> ?secure:bool -> ?http_only:bool -> Cohttp__Cookie.cookie -> t
val serialize : ?version:[ `HTTP_1_0 | `HTTP_1_1 ] -> t -> string * string
val extract : Cohttp__.Header.t -> (string * t) list
val value : t -> string
val expiration : t -> Cohttp__Cookie.expiration
val domain : t -> string option
val path : t -> string option
val secure : t -> bool
val http_only : t -> bool
OCaml

Innovation. Community. Security.