Method: ZMachine::HttpClient#on_body_data

Defined in:
lib/z-http/client.rb

#on_body_data(data) ⇒ Object



204
205
206
207
208
209
210
211
212
213
214
# File 'lib/z-http/client.rb', line 204

def on_body_data(data)
  if @content_decoder
    begin
      @content_decoder << data
    rescue HttpDecoders::DecoderError
      on_error "Content-decoder error"
    end
  else
    on_decoded_body_data(data)
  end
end