Klaviyo.HTTP behaviour (klaviyo v3.0.0)

Link to this section Summary

Link to this section Types

@type headers_t() :: [{String.t(), String.t()}]
@type method_t() :: :delete | :get | :head | :patch | :post | :put
Link to this type

response_t()

@type response_t() :: {:ok, Klaviyo.HTTP.Response.t()} | {:error, any()}
Link to this type

status_code_t()

@type status_code_t() :: pos_integer()

Link to this section Callbacks

@callback send(Klaviyo.Request.t(), any()) :: response_t()