package tezt-tezos

  1. Overview
  2. Docs
val get : ?runner:Tezt.Runner.t -> ?args:string list -> string -> Tezt.JSON.t Runnable.process

get url returns a runnable requesting url with curl.

The response is parsed and returned as JSON.

Fails if curl is not found in path.

val get_raw : ?runner:Tezt.Runner.t -> ?args:string list -> string -> string Runnable.process

Same as get but does not parse the returned value

val post : ?runner:Tezt.Runner.t -> ?args:string list -> string -> Tezt.JSON.t -> Tezt.JSON.t Runnable.process

post url data returns a runnable posting data to url with curl.

The response is parsed and returned as JSON.

Fails if curl is not found in path.

OCaml

Innovation. Community. Security.