type t = {cookie : cookie; |
expiration : 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 http_only : t -> boolval secure : t -> boolval path : t -> string optionval domain : t -> string optionval expiration : t -> expirationmodule Fields : sig ... endinclude Ppx_sexp_conv_lib.Sexpable.S with type t := t
val t_of_sexp : Sexplib0.Sexp.t -> tval sexp_of_t : t -> Sexplib0.Sexp.tval make : ?expiration:expiration -> ?path:string -> ?domain:string -> ?secure:bool -> ?http_only:bool -> cookie -> tval serialize : ?version:[ `HTTP_1_0 | `HTTP_1_1 ] -> t -> string * stringReturn an HTTP header
val value : t -> stringThe value
val expiration : t -> expirationThe expiration
val domain : t -> string optionThe domain for which the cookie is valid, if any
val path : t -> string optionThe path for which the cookie is valid, if any
val secure : t -> boolHas the cookie's secure attribute been set?