# `HuggingfaceClient.Inference.HttpHelper`
[🔗](https://github.com/huggingface/huggingface_client/blob/v0.1.0/lib/huggingface_client/inference/http_helper.ex#L1)

Shared HTTP POST helper for TGI and TEI dedicated server clients.

# `post`

```elixir
@spec post(String.t(), map(), [{String.t(), String.t()}], keyword()) ::
  {:ok, term()} | {:error, Exception.t()}
```

Posts JSON body to url with headers; returns {:ok, body} or {:error, exception}.

---

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