Class: Faraday::Middleware
- Includes:
- Rack::Utils
- Defined in:
- lib/faraday/middleware.rb
Direct Known Subclasses
Adapter, Adapter::Test, Request::ActiveSupportJson, Request::Yajl, Response::Middleware
Class Attribute Summary collapse
-
.load_error ⇒ Object
Returns the value of attribute load_error.
-
.supports_parallel_requests ⇒ Object
(also: supports_parallel_requests?)
Returns the value of attribute supports_parallel_requests.
Class Method Summary collapse
- .loaded? ⇒ Boolean
-
.setup_parallel_manager(options = {}) ⇒ Object
valid parallel managers should respond to #run with no parameters.
Instance Method Summary collapse
-
#initialize(app = nil) ⇒ Middleware
constructor
A new instance of Middleware.
Constructor Details
#initialize(app = nil) ⇒ Middleware
Returns a new instance of Middleware.
20 21 22 |
# File 'lib/faraday/middleware.rb', line 20 def initialize(app = nil) @app = app end |
Class Attribute Details
.load_error ⇒ Object
Returns the value of attribute load_error.
6 7 8 |
# File 'lib/faraday/middleware.rb', line 6 def load_error @load_error end |
.supports_parallel_requests ⇒ Object Also known as: supports_parallel_requests?
Returns the value of attribute supports_parallel_requests.
6 7 8 |
# File 'lib/faraday/middleware.rb', line 6 def supports_parallel_requests @supports_parallel_requests end |
Class Method Details
.loaded? ⇒ Boolean
16 17 18 |
# File 'lib/faraday/middleware.rb', line 16 def self.loaded? @load_error.nil? end |
.setup_parallel_manager(options = {}) ⇒ Object
valid parallel managers should respond to #run with no parameters. otherwise, return a short wrapper around it.
11 12 13 |
# File 'lib/faraday/middleware.rb', line 11 def setup_parallel_manager( = {}) nil end |