module HTTPX::Plugins::FiberConcurrency::ConnectionMethods

  1. lib/httpx/plugins/fiber_concurrency.rb

Methods

Public Instance

  1. current_context?
  2. interests
  3. send

Public Instance methods

current_context?()
[show source]
   # File lib/httpx/plugins/fiber_concurrency.rb
67 def current_context?
68   @pending.any?(&:current_context?) || (
69     @sibling && @sibling.pending.any?(&:current_context?)
70   )
71 end
interests()
[show source]
   # File lib/httpx/plugins/fiber_concurrency.rb
73 def interests
74   return if connecting? && @pending.none?(&:current_context?)
75 
76   super
77 end
send(request)
[show source]
   # File lib/httpx/plugins/fiber_concurrency.rb
79 def send(request)
80   # DoH requests bypass the session, so context needs to be set here.
81   request.set_context!
82 
83   super
84 end