Module: Restforce::Client::Connection
- Included in:
- Restforce::Client
- Defined in:
- lib/restforce/client/connection.rb
Instance Method Summary collapse
-
#middleware ⇒ Object
Public: The Faraday::Builder instance used for the middleware stack.
Instance Method Details
#middleware ⇒ Object
Public: The Faraday::Builder instance used for the middleware stack. This can be used to insert an custom middleware.
Examples
# Add the instrumentation middleware for Rails.
client.middleware.use FaradayMiddleware::Instrumentation
Returns the Faraday::Builder for the Faraday connection.
14 15 16 |
# File 'lib/restforce/client/connection.rb', line 14 def middleware connection.builder end |