Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Jerboa.Cookie
module only contain the type definition of a cokkie and a constructor.
type t = Cohttp.Cookie.Set_cookie_hdr.t
Cookie.t
is the type definition of a cookie.
type cookie = Cohttp.Cookie.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