AlpacaElixir v0.2.0 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
Functions
Callback implementation for Tesla.Middleware.call/3
.
Link to this section Functions
Callback implementation for Tesla.Middleware.call/3
.