Public Class methods
new(*, **)
[show source]
# File lib/httpx/plugins/stream_bidi.rb 350 def initialize(*, **) 351 super 352 353 return unless @options.stream 354 355 @headers.delete("content-length") 356 357 return unless @body 358 359 return if @body.is_a?(Transcoder::Body::Encoder) 360 361 raise Error, "bidirectional streams only allow the usage of the `:body` param to set request bodies." \ 362 "You must encode it yourself if you wish to do so." 363 end
Public Instance methods
empty?()
[show source]
# File lib/httpx/plugins/stream_bidi.rb 365 def empty? 366 return super unless @options.stream 367 368 false 369 end