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