Module: Web::ReadableHTTPResponse

Includes:
HTTPResponse
Defined in:
lib/web/ext/net_http.rb

Instance Method Summary collapse

Methods included from HTTPResponse

#cached?

Instance Method Details

#read_body(dest = nil) {|@body| ... } ⇒ Object

Yields:

  • (@body)


126
127
128
129
# File 'lib/web/ext/net_http.rb', line 126

def read_body(dest = nil, &block)
  yield @body if block_given?
  @body
end