IToxiproxyClient over Toxiproxy's REST API (port 8474) with
java.net.http. Requests are built as pure values {:method :path :body};
the transport is an injected send (request -> Result<{:status :body}>),
so the mapping of statuses to Results is tested without a server.
API: GET /proxies, POST /proxies, GET /proxies/{p}, POST /proxies/{p}/toxics, DELETE /proxies/{p}/toxics/{t}, POST /reset.
IToxiproxyClient over Toxiproxy's REST API (port 8474) with
java.net.http. Requests are built as pure values {:method :path :body};
the transport is an injected `send` (request -> Result<{:status :body}>),
so the mapping of statuses to Results is tested without a server.
API: GET /proxies, POST /proxies, GET /proxies/{p},
POST /proxies/{p}/toxics, DELETE /proxies/{p}/toxics/{t}, POST /reset.(http-send base-url {:keys [timeout-ms] :or {timeout-ms 10000}})A send over java.net.http against base-url ("http://127.0.0.1:8474").
A connection failure is :compose/toxiproxy-unreachable, never a throw.
A `send` over java.net.http against `base-url` ("http://127.0.0.1:8474").
A connection failure is :compose/toxiproxy-unreachable, never a throw.(make-client base-url)(make-client base-url opts)HttpToxiproxy at base-url. opts: :send (replaces the transport),
:timeout-ms.
HttpToxiproxy at `base-url`. `opts`: :send (replaces the transport), :timeout-ms.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |