module HTTPX::Plugins::StreamBidi::ConnectionMethods

  1. lib/httpx/plugins/stream_bidi.rb

overrides the declaration of +@write_buffer+, which is now a thread-safe buffer responding to the same API.

Methods

Public Class

  1. new

Public Instance

  1. interests
  2. signal

Attributes

signal [W]

Public Class methods

new(*)
[show source]
    # File lib/httpx/plugins/stream_bidi.rb
267 def initialize(*)
268   super
269   @write_buffer = BidiBuffer.new(@options.buffer_size)
270 end

Public Instance methods

interests()

rebuffers the +@write_buffer+ before calculating interests.

[show source]
    # File lib/httpx/plugins/stream_bidi.rb
273 def interests
274   @write_buffer.rebuffer
275 
276   super
277 end