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 373 def initialize(*) 374 super 375 376 return unless @options.stream 377 378 @write_buffer = BidiBuffer.new(@options.buffer_size) 379 end
Public Instance methods
call()
[show source]
# File lib/httpx/plugins/stream_bidi.rb 390 def call 391 return super unless @options.stream && (error = @signal.error) 392 393 on_error(error) 394 end
interests()
rebuffers the +@write_buffer+ before calculating interests.
[show source]
# File lib/httpx/plugins/stream_bidi.rb 382 def interests 383 return super unless @options.stream 384 385 @write_buffer.rebuffer 386 387 super 388 end