AlpacaElixir v0.1.7 Alpaca.ResponseMiddleware View Source

This middleware handles responses from the Alpaca API and returns it in a result tuple of either {:ok, reponse_body} or {:error, error_message}.

This allows us to easily handle all of our responses in a uniform way.

Example usage

defmodule Alpaca.Client do
  use Tesla

  plug Alpaca.ResponseMiddleware
end

Options

There are no options at the current moment in time

Link to this section Summary

Link to this section Functions

Link to this function

call(env, next, options)

View Source

Callback implementation for Tesla.Middleware.call/3.