D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
URI
/
Filename :
cdesc-URI.ri
back
Copy
U:RDoc::NormalModule[iI"URI:ET@0o:RDoc::Markup::Document:@parts[o;;[ : @fileI"lib/open-uri.rb;T:0@omit_headings_from_table_of_contents_below0o;;[ ; @; 0o;;[o:RDoc::Markup::Paragraph;[I"NURI is a module providing classes to handle Uniform Resource Identifiers ;TI"7(RFC2396[https://www.rfc-editor.org/rfc/rfc2396]).;To:RDoc::Markup::BlankLine S:RDoc::Markup::Heading: leveli: textI" Features;T@o:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0;[o;;[I""Uniform way of handling URIs.;To;;0;[o;;[I"1Flexibility to introduce custom URI schemes.;To;;0;[o;;[I"NFlexibility to have an alternate URI::Parser (or just different patterns ;TI"and regexp's).;T@S; ;i;I"Basic example;T@o:RDoc::Markup::Verbatim;[I"require 'uri' ;TI" ;TI"Euri = URI("http://foo.com/posts?id=30&limit=5#time=1305298413") ;TI"I#=> #<URI::HTTP http://foo.com/posts?id=30&limit=5#time=1305298413> ;TI" ;TI"uri.scheme #=> "http" ;TI"!uri.host #=> "foo.com" ;TI" uri.path #=> "/posts" ;TI"'uri.query #=> "id=30&limit=5" ;TI")uri.fragment #=> "time=1305298413" ;TI" ;TI"Luri.to_s #=> "http://foo.com/posts?id=30&limit=5#time=1305298413" ;T:@format0S; ;i;I"Adding custom URIs;T@o;;[I"module URI ;TI" class RSYNC < Generic ;TI" DEFAULT_PORT = 873 ;TI" end ;TI"& register_scheme 'RSYNC', RSYNC ;TI" end ;TI"#=> URI::RSYNC ;TI" ;TI"URI.scheme_list ;TI"A#=> {"FILE"=>URI::File, "FTP"=>URI::FTP, "HTTP"=>URI::HTTP, ;TI"G# "HTTPS"=>URI::HTTPS, "LDAP"=>URI::LDAP, "LDAPS"=>URI::LDAPS, ;TI"6# "MAILTO"=>URI::MailTo, "RSYNC"=>URI::RSYNC} ;TI" ;TI"(uri = URI("rsync://rsync.foo.com") ;TI"-#=> #<URI::RSYNC rsync://rsync.foo.com> ;T;0S; ;i;I"RFC References;T@o;;[I"FA good place to view an RFC spec is http://www.ietf.org/rfc.html.;T@o;;[I")Here is a list of all related RFC's:;To;;;;[ o;;0;[o;;[I"2RFC822[https://www.rfc-editor.org/rfc/rfc822];To;;0;[o;;[I"4RFC1738[https://www.rfc-editor.org/rfc/rfc1738];To;;0;[o;;[I"4RFC2255[https://www.rfc-editor.org/rfc/rfc2255];To;;0;[o;;[I"4RFC2368[https://www.rfc-editor.org/rfc/rfc2368];To;;0;[o;;[I"4RFC2373[https://www.rfc-editor.org/rfc/rfc2373];To;;0;[o;;[I"4RFC2396[https://www.rfc-editor.org/rfc/rfc2396];To;;0;[o;;[I"4RFC2732[https://www.rfc-editor.org/rfc/rfc2732];To;;0;[o;;[I"4RFC3986[https://www.rfc-editor.org/rfc/rfc3986];T@S; ;i;I"Class tree;T@o;;;;[ o;;0;[o;;[I"%URI::Generic (in uri/generic.rb);To;;;;[ o;;0;[o;;[I"!URI::File - (in uri/file.rb);To;;0;[o;;[I"URI::FTP - (in uri/ftp.rb);To;;0;[o;;[I"!URI::HTTP - (in uri/http.rb);To;;;;[o;;0;[o;;[I"#URI::HTTPS - (in uri/https.rb);To;;0;[o;;[I"!URI::LDAP - (in uri/ldap.rb);To;;;;[o;;0;[o;;[I"#URI::LDAPS - (in uri/ldaps.rb);To;;0;[o;;[I"%URI::MailTo - (in uri/mailto.rb);To;;0;[o;;[I"%URI::Parser - (in uri/common.rb);To;;0;[o;;[I"%URI::REGEXP - (in uri/common.rb);To;;;;[o;;0;[o;;[I".URI::REGEXP::PATTERN - (in uri/common.rb);To;;0;[o;;[I"#URI::Util - (in uri/common.rb);To;;0;[o;;[I"$URI::Error - (in uri/common.rb);To;;;;[o;;0;[o;;[I".URI::InvalidURIError - (in uri/common.rb);To;;0;[o;;[I"4URI::InvalidComponentError - (in uri/common.rb);To;;0;[o;;[I"*URI::BadURIError - (in uri/common.rb);T@S; ;i;I"Copyright Info;T@o;;: NOTE;[o;;[I"Author;T;[o;;[I"'Akira Yamada <akira@ruby-lang.org>;To;;[I"Documentation;T;[o;;[I"(Akira Yamada <akira@ruby-lang.org> ;TI"(Dmitry V. Sabanin <sdmitry@lrn.ru> ;TI",Vincent Batts <vbatts@hashbangbash.com>;To;;[I"License;T;[o;;[I";Copyright (c) 2001 akira yamada <akira@ruby-lang.org> ;TI"JYou can redistribute it and/or modify it under the same term as Ruby.;T; I"lib/uri.rb;T; 0o;;[ ; I"lib/uri/common.rb;T; 0o;;[ ; I"lib/uri/file.rb;T; 0o;;[ ; I"lib/uri/ftp.rb;T; 0o;;[ ; I"lib/uri/generic.rb;T; 0o;;[ ; I"lib/uri/http.rb;T; 0o;;[ ; I"lib/uri/https.rb;T; 0o;;[ ; I"lib/uri/ldap.rb;T; 0o;;[ ; I"lib/uri/ldaps.rb;T; 0o;;[ ; I"lib/uri/mailto.rb;T; 0o;;[ ; I"lib/uri/rfc2396_parser.rb;T; 0o;;[ ; I"lib/uri/rfc3986_parser.rb;T; 0o;;[ ; I"lib/uri/version.rb;T; 0o;;[ ; I"lib/uri/ws.rb;T; 0o;;[ ; I"lib/uri/wss.rb;T; 0; 0; 0[ [ U:RDoc::Constant[i I"RFC2396_PARSER;TI"URI::RFC2396_PARSER;T:public0o;;[o;;[I".The default parser instance for RFC 2396.;T; @�; 0@�@cRDoc::NormalModule0U;[i I"RFC3986_PARSER;TI"URI::RFC3986_PARSER;T;0o;;[o;;[I".The default parser instance for RFC 3986.;T; @�; 0@�@@*0U;[i I"DEFAULT_PARSER;TI"URI::DEFAULT_PARSER;T;0o;;[o;;[I"!The default parser instance.;T; @�; 0@�@@*0U;[i I"INITIAL_SCHEMES;TI"URI::INITIAL_SCHEMES;T:private0o;;[ ; @�; 0@�@@*0[ [[I" class;T[[;[[I"decode_uri_component;TI"lib/uri/common.rb;T[I"decode_www_form;T@L[I"decode_www_form_component;T@L[I"encode_uri_component;T@L[I"encode_www_form;T@L[I"encode_www_form_component;T@L[I"for;T@L[I" join;T@L[I" open;TI"lib/open-uri.rb;T[I" parse;T@L[I"parser=;T@L[I"register_scheme;T@L[I"scheme_list;T@L[I" split;T@L[:protected[ [;[[I"_decode_uri_component;T@L[I"_encode_uri_component;T@L[I" instance;T[[;[ [;[ [;[ [ [U:RDoc::Context::Section[i 0o;;[ ; 0; 0[@I")lib/rubygems/local_remote_options.rb;TI"lib/rubygems/request.rb;TI")lib/rubygems/specification_policy.rb;TI"lib/rubygems/uri.rb;T@�@�@�@�@ @@@ @@@@@@@@cRDoc::TopLevel