# ExSozu


A resilient Elixir client for the [Sōzu HTTP reverse proxy](

Answers are sent to the calling process via `Process.send/3` and should be handled in a `handle_info/2` or using `receive/1` (the messages are in this format: `{:ansers, %ExSozu.Answer{}}`).

The documentation is available at [](

## Installation

Add `exsozu` to your list of dependencies in `mix.exs`:

def deps do
  [{:exsozu, "~> 0.2.0"}]

## Examples

iex> ExSozu.Command.list_workers() |> ExSozu.command()
iex> receive do: (m -> m)
 %ExSozu.Answer{data: %{"data" => [%{"id" => 0, "pid" => 9,
   "run_state" => "RUNNING"}], "type" => "WORKERS"}, id: "oA7iu2qVAL2JNkBg",
 message: "", status: :ok}}

I also made a demo interface using ExSozu: [](