body

body()
Instance Public methods

Returns the full entity body.

Calling this method a second or subsequent time will return the string already read.

http.request_get('/index.html') {|res|
  puts res.body
}

http.request_get('/index.html') {|res|
  p res.body.object_id   # 538149362
  p res.body.object_id   # 538149362
}

entity

doc_ruby_on_rails
2015-04-21 14:21:10
Comments
Leave a Comment

Please login to continue.