package jerboa

  1. Overview
  2. Docs

Jerboa.Cookie module only contain the type definition of a cokkie and a constructor.

Cookie.t is the type definition of a cookie.

type expiration = Cohttp.Cookie.expiration
val create : ?expiration:[ `Session | `Max_age of int64 ] -> ?path:string -> ?domain:string -> ?secure:bool -> ?http_only:bool -> string -> string -> Cohttp.Cookie.Set_cookie_hdr.t

Cookie.create ?expiration ?path ?domain ?secure ?http_only key value creates a cookie with the supplied inputs.

val serilaize : ?version:[ `HTTP_1_0 | `HTTP_1_1 ] -> Cohttp.Cookie.Set_cookie_hdr.t -> string * string
OCaml

Innovation. Community. Security.