⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.133
Server IP:
185.119.109.197
Server:
Linux managedhosting.chostar.me 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
3.0.0
/
system
/
Net
/
HTTP
/
Edit File: get-i.ri
U:RDoc::AnyMethod[iI"get:ETI"Net::HTTP#get;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"IRetrieves data from +path+ on the connected-to host which may be an ;TI"<absolute path String or a URI to extract the path from.;To:RDoc::Markup::BlankLine o; ; [I"B+initheader+ must be a Hash like { 'Accept' => '*/*', ... }, ;TI"'and it defaults to an empty hash. ;TI"BIf +initheader+ doesn't have the key 'accept-encoding', then ;TI"Ca value of "gzip;q=1.0,deflate;q=0.6,identity;q=0.3" is used, ;TI"?so that gzip compression is used in preference to deflate ;TI"Acompression, which is used in preference to no compression. ;TI"FRuby doesn't have libraries to support the compress (Lempel-Ziv) ;TI"Ccompression, so that is not supported. The intent of this is ;TI"?to reduce bandwidth by default. If this routine sets up ;TI"@compression, then it does the decompression also, removing ;TI"9the header as well to prevent confusion. Otherwise ;TI"'it leaves the body as it found it.;T@o; ; [I"4This method returns a Net::HTTPResponse object.;T@o; ; [ I"9If called with a block, yields each fragment of the ;TI"8entity body in turn as a string as it is read from ;TI"@the socket. Note that in this case, the returned response ;TI"3object will *not* contain a (meaningful) body.;T@o; ; [I""+dest+ argument is obsolete. ;TI",It still works but you must not use it.;T@o; ; [I"+This method never raises an exception.;T@o:RDoc::Markup::Verbatim; [ I"(response = http.get('/index.html') ;TI" ;TI"# using block ;TI"'File.open('result.txt', 'w') {|f| ;TI"# http.get('/~foo/') do |str| ;TI" f.write str ;TI" end ;TI"};T:@format0: @fileI"lib/net/http.rb;T:0@omit_headings_from_table_of_contents_below00I"body_segment;T[ I")(path, initheader = nil, dest = nil);T@8FI" HTTP;TcRDoc::NormalClass00
Simpan