Tesla.Middleware.call
You're seeing just the callback
call
, go back to Tesla.Middleware module for more information.
Specs
call(env :: Tesla.Env.t(), next :: Tesla.Env.stack(), options :: any()) :: Tesla.Env.result()
Invoked when a request runs.
- (optionally) read and/or writes request data
- calls
Tesla.run/2
- (optionally) read and/or writes response data
Arguments
env
-Tesla.Env
struct that stores request/response datanext
- middlewares that should be called after current oneoptions
- middleware options provided by user