Module type Webdriver.HTTP_CLIENT

type 'a t
val return : 'a -> 'a t
val map : ('a -> 'b) -> 'a t -> 'b t
val bind : ('a -> 'b t) -> 'a t -> 'b t
val fail : exn -> 'a t
val catch : (unit -> 'a t) -> (exn -> 'a t) -> 'a t
val get : string -> string t

get url returns the body of the response.

val post : string -> string -> string t

post url body returns the body of the response. The Content-Type header should be application/json.

val delete : string -> string t

delete url returns the body of the response.