klaviyo v2.0.0 Klaviyo.Client behaviour

Behaviour for implementing an HTTP client.

Link to this section Summary

Link to this section Callbacks

Link to this callback

request(method, url, headers, body, opts)

request(
  method :: Klaviyo.http_method_t(),
  url :: String.t(),
  headers :: Klaviyo.http_headers_t(),
  body :: binary(),
  opts :: any()
) :: {:ok, Klaviyo.http_response_t()} | {:error, any()}