package tezt-tezos

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

Module Tezt_tezos.CurlSource

Sourceval get : ?runner:Tezt_wrapper.Runner.t -> ?args:string list -> string -> Tezt_wrapper.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_wrapper.Runner.t -> ?args:string list -> string -> string Runnable.process

Same as get but does not parse the returned value

Sourceval post : ?runner:Tezt_wrapper.Runner.t -> ?args:string list -> string -> Tezt_wrapper.JSON.t -> Tezt_wrapper.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.

Sourceval post_raw : ?runner:Tezt_wrapper.Runner.t -> ?args:string list -> string -> Tezt_wrapper.JSON.t -> string Runnable.process
OCaml

Innovation. Community. Security.