I’m trying to understand different parts of a URI.
URI#parse() uses URI#split(). But I don’t understand which
component is which.
There are nine components.
scheme, userinfo, host, port,
registry, path, opaque, query, fragment
I can guess some of the above.
But I’m not sure about others.
I tracked down the variable @regexp[:ABS_URI] and @regexp[:REL_URI]
in split(), but
scheme is http://, ssh://
userinfo is matz:
host is exampe.com
port is :80
registry (I have no idea)
path is /path/to/file/or/dir (does this include file name as well?)
opaque (I have no idea)
uri/common.rb has a bunch of Regexp constants, which I find it
difficult to understand.
If you could give me a general help on the list above (e.g., if I’m
wrong or missing something),
I could play at http://rubular.com/ to play more with URI.
Any help would be appreciated.