# `ABSmartly.HTTP.Client`
[🔗](https://github.com/absmartly/elixir-sdk/blob/v1.0.0/lib/absmartly/http/client.ex#L1)

HTTP client for ABSmartly API with retry logic.

# `agent`
[🔗](https://github.com/absmartly/elixir-sdk/blob/v1.0.0/lib/absmartly/http/client.ex#L19)

The value sent as the `X-Agent` header: `"absmartly-elixir-sdk/<version>"`.

# `fetch_context`
[🔗](https://github.com/absmartly/elixir-sdk/blob/v1.0.0/lib/absmartly/http/client.ex#L29)

Fetch context data from API endpoint.

Implements retry logic:
- Retry on network errors and 5xx status codes
- Don't retry on 4xx status codes
- Exponential backoff: 50ms × 2^attempt

# `publish_events`
[🔗](https://github.com/absmartly/elixir-sdk/blob/v1.0.0/lib/absmartly/http/client.ex#L66)

Publish events to API endpoint.

---

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