Tinkex.API (Tinkex v0.3.4)

View Source

High-level HTTP API client for Tinkex.

Centralizes retry logic, telemetry, pool routing, and error categorization. Every function requires an explicit Tinkex.Config via opts[:config].

Summary

Functions

Resolve the HTTP client module for a request based on options/config.

Functions

client_module(opts)

@spec client_module(keyword()) :: module()

Resolve the HTTP client module for a request based on options/config.

stream_get(path, opts)

@spec stream_get(
  String.t(),
  keyword()
) :: {:ok, Tinkex.API.StreamResponse.t()} | {:error, Tinkex.Error.t()}