exshopify v0.9.0 Shopify.Client behaviour
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)
request(request, client_opts)
request(request :: Shopify.Request.t(), client_opts :: term()) ::
{:ok,
%{
body: binary(),
headers: [{binary(), binary()}],
status_code: pos_integer()
}}
| {:error, reason :: binary()}
request(request :: Shopify.Request.t(), client_opts :: term()) :: {:ok, %{ body: binary(), headers: [{binary(), binary()}], status_code: pos_integer() }} | {:error, reason :: binary()}