Http.CookieCookies.
Support for cookies.
The type for cookie attributes.
val default_attributes : attributesdefault_attributes are cookie attributes with secure set to true, http_only set to true, same_site set to "strict" and no other attribute specified.
val attributes :
?init:attributes ->
?domain:string option ->
?http_only:bool ->
?max_age:int option ->
?path:Path.t ->
?same_site:string ->
?secure:bool ->
unit ->
attributesatts () are the given cookie attributes. Those unspecified take the value of init which defaults to default_attributes.
val encode : ?attributes:attributes -> name:name -> string -> stringencodes ~atts name value encodes a cookie named name with value value and attributes atts (defaults to default_attributes) for Headers.add_set_cookie.
val decode_list : string -> ((name * string) list, string) Stdlib.resultdecode_list s parses the cookie string of a Headers.cookie header value.