Public Class methods
new(*)
[show source]
# File lib/httpx/plugins/stream.rb 129 def initialize(*) 130 super 131 @stream = @response.stream 132 end
Public Instance methods
write(chunk)
[show source]
# File lib/httpx/plugins/stream.rb 134 def write(chunk) 135 return super unless @stream 136 137 return 0 if chunk.empty? 138 139 chunk = decode_chunk(chunk) 140 141 @stream.on_chunk(chunk.dup) 142 143 chunk.size 144 end