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