class Restforce::Middleware::JsonRequest
def call(env)
Licensed under the MIT License.
Copyright (c) 2009-2022 Rick Olson, Zack Hobson
In Faraday versions before v1.2.0, `#call` is missing.
variable rather than expecting an `attr_reader` to exist.
with a tiny adaptation to refer to the `@app` instance
gem (
Taken from `lib/faraday/middleware.rb` in the `faraday`
def call(env) on_request(env) if respond_to?(:on_request) @app.call(env).on_complete do |environment| on_complete(environment) if respond_to?(:on_complete) end end