Class: Faraday::Middleware

Inherits:
Object show all
Includes:
Rack::Utils
Defined in:
lib/faraday/middleware.rb

Class Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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_errorObject

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_requestsObject 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

Returns:

  • (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(options = {})
  nil
end