Module: HTTPX::Plugins::FiberConcurrency::HTTP1Methods

Defined in:
lib/httpx/plugins/fiber_concurrency.rb,
sig/plugins/fiber_concurrency.rbs

Instance Method Summary collapse

Instance Method Details

#backlog? ⇒ Boolean

Returns:

  • (Boolean)


163
164
165
# File 'lib/httpx/plugins/fiber_concurrency.rb', line 163

def backlog?
  !no_more_requests?
end

#interests ⇒ io_interests?

Returns:

  • (io_interests, nil)


153
154
155
156
157
158
159
160
161
# File 'lib/httpx/plugins/fiber_concurrency.rb', line 153

def interests
  request = @request || @requests.first

  return unless request

  return unless request.current_context? || @requests.any?(&:current_context?) || @pending.any?(&:current_context?)

  super
end

#no_requests_to_handle? ⇒ Boolean

Returns:

  • (Boolean)


167
168
169
# File 'lib/httpx/plugins/fiber_concurrency.rb', line 167

def no_requests_to_handle?
  @requests.none?(&:current_context?)
end