Module: Restforce::Concerns::Connection
- Included in:
- AbstractClient
- Defined in:
- lib/restforce/concerns/connection.rb
Instance Method Summary collapse
-
#middleware ⇒ Object
(also: #builder)
Public: The Faraday::Builder instance used for the middleware stack.
Instance Method Details
#middleware ⇒ Object Also known as: builder
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.
15 16 17 |
# File 'lib/restforce/concerns/connection.rb', line 15 def middleware connection.builder end |