# `Imp.HTTP`
[🔗](https://github.com/deepfates/imp/blob/v0.18.1/lib/imp/http.ex#L1)

Small injectable HTTP boundary used by provider clients.

A method that cannot be sent is `{:error, {:http_method_not_supported, refuser,
method}}`, where `refuser` is `Imp.HTTP` for a method outside `t:method/0`,
or the transport that cannot send it.

# `method`

```elixir
@type method() :: :get | :post | :put | :patch | :delete
```

# `post`

```elixir
@callback post(String.t(), [{String.t(), String.t()}], iodata(), keyword()) ::
  {:ok, %{status: non_neg_integer(), body: binary(), headers: list()}}
  | {:error, term()}
```

# `request`
*optional* 

```elixir
@callback request(method(), String.t(), [{String.t(), String.t()}], iodata(), keyword()) ::
  {:ok, %{status: non_neg_integer(), body: binary(), headers: list()}}
  | {:error, term()}
```

# `stream`
*optional* 

```elixir
@callback stream(String.t(), [{String.t(), String.t()}], iodata(), keyword()) ::
  Enumerable.t()
```

# `post`

# `request`

# `stream`

---

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