Tesla.Middleware.call

You're seeing just the callback call, go back to Tesla.Middleware module for more information.
Link to this callback

call(env, next, options)

View Source

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 data
  • next - middlewares that should be called after current one
  • options - middleware options provided by user