Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
include module type of struct include Cohttp.Cookie.Set_cookie_hdr end
type t = Cohttp.Cookie.Set_cookie_hdr.t = {
expiration : Cohttp.Cookie.expiration;
domain : string option;
path : string option;
secure : bool;
http_only : bool;
}
A header which a server sends to a client to request that the client returns the cookie in future requests, under certain conditions.
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
Return an HTTP header
val extract : Cohttp.Header.t -> (string * t) list
Return the list of cookies sent by the server
val cookie : t -> Cohttp.Cookie.cookie
The name-value binding
val value : t -> string
The value
val expiration : t -> Cohttp.Cookie.expiration
The expiration
val domain : t -> string option
The domain for which the cookie is valid, if any
val path : t -> string option
The path for which the cookie is valid, if any
val secure : t -> bool
Has the cookie's secure attribute been set?
val http_only : t -> bool