Module

URI

Includes:

URI support for Ruby

Author:Akira Yamada <akira@ruby-lang.org>
Documentation:Akira Yamada <akira@ruby-lang.org>, Dmitry V. Sabanin <sdmitry@lrn.ru>
License:Copyright © 2001 akira yamada <akira@ruby-lang.org> You can redistribute it and/or modify it under the same term as Ruby.
Revision:$Id: uri.rb 11708 2007-02-12 23:01:19Z shyouhei $

See URI for documentation

From uri/common.rb

uri/common.rb

Author:Akira Yamada <akira@ruby-lang.org>
Revision:$Id: common.rb 11747 2007-02-15 02:41:45Z knu $
License:You can redistribute it and/or modify it under the same term as Ruby.
Modules
Escape
REGEXP
Util
Classes
BadURIError URI is valid, bad usage is not.
Error Base class for all URI exceptions.
FTP RFC1738 section 3.2.
Generic Base class for all URI classes. Implements generic URI syntax as per RFC 2396.
HTTP The syntax of HTTP URIs is defined in RFC1738 section 3.3.
HTTPS The default port for HTTPS URIs is 443, and the scheme is ‘https:’ rather than ‘http:’. Other than that, HTTPS URIs are identical to HTTP URIs; see URI::HTTP.
InvalidComponentError Not a URI component.
InvalidURIError Not a URI.
LDAP LDAP URI SCHEMA (described in RFC2255) ldap://<host>/<dn>[?<attrs>[?<scope>[?<filter>[?<extensions>]]]]</extensions></filter></scope></attrs></dn></host>
MailTo RFC2368, The mailto URL scheme
Public Methods
extract Extracts URIs from a string. If block given, iterates through all matched URIs. Returns nil if block given or array with matches.
join Joins URIs.
parse Creates one of the URI’s subclasses instance from the string.
regexp Returns a Regexp object which matches to URI-like strings. The Regexp object returned by this method includes arbitrary number of capture group (parentheses). Never rely on it’s number.
split Splits the string on following parts and returns array with result:
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.