Module: Web::HTTPResponse
- Defined in:
- lib/web/http_response.rb
Instance Method Summary collapse
Instance Method Details
#cached? ⇒ Boolean
10 11 12 |
# File 'lib/web/http_response.rb', line 10 def cached? !!@cached end |
#read_body(dist = nil) {|@body| ... } ⇒ Object
5 6 7 8 |
# File 'lib/web/http_response.rb', line 5 def read_body(dist = nil, &block) yield @body if block_given? @body end |