package tezt-tezos

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module RPC_legacy.CurlSource

Sourceval 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.

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

Same as get but does not parse the returned value

Sourceval 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.