Class: HTTP::Features::LineIterableBody::IterableBodyWrapper

Inherits:
Response::Body
  • Object
show all
Defined in:
lib/http/features/line_iterable_body.rb

Instance Method Summary collapse

Constructor Details

#initialize(body, encoding) ⇒ IterableBodyWrapper

Returns a new instance of IterableBodyWrapper.



21
22
23
# File 'lib/http/features/line_iterable_body.rb', line 21

def initialize(body, encoding)
  super(body, encoding: encoding)
end

Instance Method Details

#each_line(&block) ⇒ Object



25
26
27
28
29
# File 'lib/http/features/line_iterable_body.rb', line 25

def each_line(&block)
  each do |chunk|
    chunk.each_line(&block)
  end
end