📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-22 05:42:29
📂
/ (Root)
/
opt
/
alt
/
ruby30
/
share
/
ri
/
system
/
Net
/
HTTP
📍 /opt/alt/ruby30/share/ri/system/Net/HTTP
🔄 Refresh
✏️
Editing: get-c.ri
Read Only
U:RDoc::AnyMethod[iI"get:ETI"Net::HTTP::get;TT:privateo:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"ESends a GET request to the target and returns the HTTP response ;TI"9as a string. The target can either be specified as ;TI"A(+uri+, +headers+), or as (+host+, +path+, +port+ = 80); so:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"Cprint Net::HTTP.get(URI('http://www.example.com/index.html')) ;T:@format0o; ; [I"or:;T@o;; [I";print Net::HTTP.get('www.example.com', '/index.html') ;T; 0o; ; [I"*you can also specify request headers:;T@o;; [I"YNet::HTTP.get(URI('http://www.example.com/index.html'), { 'Accept' => 'text/html' });T; 0: @fileI"lib/net/http.rb;T:0@omit_headings_from_table_of_contents_below000[ I"5(uri_or_host, path_or_headers = nil, port = nil);T@ FI" HTTP;TcRDoc::NormalClass00
💾 Save Changes
❌ Cancel