klaviyo v1.0.0 Klaviyo.Client behaviour
Behaviour used to implement an HTTP client.
Klaviyo allows you to use the HTTP client of your choice, provided that it can be coerced into complying with this module’s specification.
Link to this section Summary
Link to this section Types
Link to this section Callbacks
Link to this callback
request(method, url, headers, req_body, client_opts)
request( method :: http_method_t(), url :: String.t(), headers :: [{binary(), binary()}], req_body :: binary(), client_opts :: term() ) :: {:ok, %{body: binary(), status_code: pos_integer()}} | {:error, reason :: binary()}