Module Webdriver_cohttp_eio.Cookie

Cookies management.

type same_site = [
  1. | `Lax
  2. | `Strict
  3. | `Undef
]
type t = {
  1. name : string;
  2. value : string;
  3. path : string;
  4. domain : string option;
  5. secure : bool;
  6. http_only : bool;
  7. expiry : int;
  8. same_site : same_site;
}
val make : ?path:string -> ?domain:string -> ?secure:bool -> ?http_only:bool -> ?expiry:int -> ?same_site:same_site -> name:string -> value:string -> unit -> t

A helper function to create a new cookie with some optional parameters. The resulting cookie will not be set in the browser ands needs to be added.

val add : t -> unit cmd

add cookie creates or updates the cookie in the browser.

val all : t list cmd

Returns the list of all cookies set in the browser.

val get : string -> t cmd

get cookie_name returns the configuration of the cookie with the specified name. Raises `no_such_cookie otherwise.