overrides the declaration of +@write_buffer+, which is now a thread-safe buffer responding to the same API.
Attributes
| signal | [W] |
Public Class methods
new(*)
[show source]
# File lib/httpx/plugins/stream_bidi.rb 294 def initialize(*) 295 super 296 @write_buffer = BidiBuffer.new(@options.buffer_size) 297 end
Public Instance methods
call()
[show source]
# File lib/httpx/plugins/stream_bidi.rb 306 def call 307 return super unless (error = @signal.error) 308 309 on_error(error) 310 end
interests()
rebuffers the +@write_buffer+ before calculating interests.
[show source]
# File lib/httpx/plugins/stream_bidi.rb 300 def interests 301 @write_buffer.rebuffer 302 303 super 304 end