Shopify.Client behaviour (exshopify v0.11.0)

Behaviour used to implement an HTTP client.

Shopify 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 Callbacks

Link to this callback

request(request, client_opts)

Specs

request(request :: Shopify.Request.t(), client_opts :: term()) ::
  {:ok,
   %{
     body: binary(),
     headers: [{binary(), binary()}],
     status_code: pos_integer()
   }}
  | {:error, reason :: binary()}