Module: HTTPX::Plugins::FiberConcurrency::ConnectionMethods
- Defined in:
- lib/httpx/plugins/fiber_concurrency.rb
Instance Method Summary collapse
Instance Method Details
#current_context? ⇒ Boolean
66 67 68 69 70 |
# File 'lib/httpx/plugins/fiber_concurrency.rb', line 66 def current_context? @pending.any?(&:current_context?) || ( @sibling && @sibling.pending.any?(&:current_context?) ) end |
#interests ⇒ Object
72 73 74 75 76 |
# File 'lib/httpx/plugins/fiber_concurrency.rb', line 72 def interests return if connecting? && @pending.none?(&:current_context?) super end |
#send(request) ⇒ Object
78 79 80 81 82 83 |
# File 'lib/httpx/plugins/fiber_concurrency.rb', line 78 def send(request) # DoH requests bypass the session, so context needs to be set here. request.set_context! super end |