📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-22 07:33:53
📂
/ (Root)
/
opt
/
alt
/
ruby33
/
share
/
ri
/
system
/
Net
/
HTTP
📍 /opt/alt/ruby33/share/ri/system/Net/HTTP
🔄 Refresh
✏️
Editing: get-i.ri
Read Only
U:RDoc::AnyMethod[iI"get:ETI"Net::HTTP#get;TF:privateo:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"(Sends a GET request to the server; ;TI"<returns an instance of a subclass of Net::HTTPResponse.;To:RDoc::Markup::BlankLine o; ; [I"7The request is based on the Net::HTTP::Get object ;TI"Fcreated from string +path+ and initial headers hash +initheader+.;T@o; ; [I"@With a block given, calls the block with the response body:;T@o:RDoc::Markup::Verbatim; [ I"$http = Net::HTTP.new(hostname) ;TI"#http.get('/todos/1') do |res| ;TI" p res ;TI"2end # => #<Net::HTTPOK 200 OK readbody=true> ;T:@format0o; ; [I"Output:;T@o;; [I"j"{\n \"userId\": 1,\n \"id\": 1,\n \"title\": \"delectus aut autem\",\n \"completed\": false\n}" ;T; 0o; ; [I"=With no block given, simply returns the response object:;T@o;; [I"<http.get('/') # => #<Net::HTTPOK 200 OK readbody=true> ;T; 0o; ; [I" Related:;T@o:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0; [o; ; [I"8Net::HTTP::Get: request class for \HTTP method GET.;To;;0; [o; ; [I"=Net::HTTP.get: sends GET request, returns response body.;T: @fileI"lib/net/http.rb;T:0@omit_headings_from_table_of_contents_below0I".get(path, initheader = nil) {|res| ... } ;TI"body_segment;T[ I")(path, initheader = nil, dest = nil);T@8FI" HTTP;TcRDoc::NormalClass00
💾 Save Changes
❌ Cancel