# `Skir.RPC.HTTPClient`
[🔗](https://github.com/gepheum/skir/blob/main/lib/skir/rpc/http_client.ex#L1)

Transport behaviour used by `Skir.RPC.ServiceClient`.

Implement this behaviour to use Finch, Req, Tesla, Mint, or another HTTP
stack. The built-in adapter uses bounded OTP TCP/TLS reads and its HTTP header parser.

# `header`

```elixir
@type header() :: {String.t(), String.t()}
```

# `response`

```elixir
@type response() :: %{status: integer(), headers: [header()], body: binary()}
```

# `request`

```elixir
@callback request(:get | :post, String.t(), [header()], binary(), keyword()) ::
  {:ok, response()} | {:error, term()}
```

Sends an HTTP request and returns the status, headers, and binary body, or a transport error.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
