EndPointBlank.Http (end_point_blank_elixir v0.3.1)

Copy Markdown

Shared HTTP helper with retry logic for all EndPointBlank API calls.

Summary

Functions

POSTs body as JSON to url with the given auth_header. Retries up to 3 times with a 200 ms delay between attempts on network error. Each attempt is bounded by a connect timeout and a receive timeout so a hung intake can never block the caller indefinitely. Returns {:ok, response} or {:error, reason}.

Functions

post(url, body, auth_header)

POSTs body as JSON to url with the given auth_header. Retries up to 3 times with a 200 ms delay between attempts on network error. Each attempt is bounded by a connect timeout and a receive timeout so a hung intake can never block the caller indefinitely. Returns {:ok, response} or {:error, reason}.