This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Thu Jun 05 12:03:32 -0700 2008 | [sporkmonger] |
| |
CHANGELOG | Thu Jun 05 12:36:34 -0700 2008 | [sporkmonger] |
| |
LICENSE | Thu Jun 05 11:29:57 -0700 2008 | [sporkmonger] |
| |
README | Wed Sep 05 13:46:23 -0700 2007 | [sporkmonger] |
| |
Rakefile | Thu Jun 05 12:02:30 -0700 2008 | [sporkmonger] |
| |
lib/ | Thu Jun 05 12:36:34 -0700 2008 | [sporkmonger] |
| |
spec/ | Thu Jun 05 12:36:34 -0700 2008 | [sporkmonger] |
| |
tasks/ | Thu Jun 05 12:02:30 -0700 2008 | [sporkmonger] |
| |
website/ | Thu Jun 05 12:37:47 -0700 2008 | [sporkmonger] |
README
Addressable is a replacement for the URI implementation that is part of
Ruby's standard library. It more closely conforms to the relevant RFCs and
adds support for IRIs and URI templates.
Example usage:
require 'addressable/uri'
uri = Addressable::URI.parse("http://example.com/path/to/resource/")
uri.scheme
=> "http"
uri.host
=> "example.com"
uri.path
=> "/path/to/resource/"
Addressable::URI.expand_template("http://example.com/{query}/", {
"query" => "an+example+query"
})
=> #<Addressable::URI:0x123456 URI:http://example.com/an+example+query/>
uri = Addressable::URI.parse("http://www.詹姆斯.com/")
uri.normalize
=> #<Addressable::URI:0x654321 URI:http://www.xn--8ws00zhy3a.com/>




