class GH::FaradayAdapter
Faraday adapter based on Net::HTTP, with persistent connection and pipeline support.
Public Class Methods
setup_parallel_manager(options = {})
click to toggle source
# File lib/gh/faraday_adapter.rb, line 46 def self.setup_parallel_manager(options = {}) Manager.new(options) end
Public Instance Methods
call(env)
click to toggle source
Calls superclass method
# File lib/gh/faraday_adapter.rb, line 50 def call(env) catch(:parallel) { super } end
perform_request(http, env)
click to toggle source
Calls superclass method
# File lib/gh/faraday_adapter.rb, line 54 def perform_request(http, env) return super unless env[:parallel_manager] env[:parallel_manager].add_request(http, env, self) throw :parallel, @app.call(env) end