D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Net
/
HTTPResponse
/
Filename :
body-i.ri
back
Copy
U:RDoc::AnyMethod[iI" body:ETI"Net::HTTPResponse#body;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"'Returns the string response body; ;TI"Mnote that repeated calls for the unmodified body return a cached string:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"path = '/todos/1' ;TI")Net::HTTP.start(hostname) do |http| ;TI" res = http.get(path) ;TI" p res.body ;TI") p http.head(path).body # No body. ;TI" end ;T:@format0o; ; [I"Output:;T@o;; [I"j"{\n \"userId\": 1,\n \"id\": 1,\n \"title\": \"delectus aut autem\",\n \"completed\": false\n}" ;TI"nil;T; 0: @fileI"lib/net/http/response.rb;T:0@omit_headings_from_table_of_contents_below000[ I"();T@FI"HTTPResponse;TcRDoc::NormalClass00