百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
A

addressable

> 编程语言
开源

Addressable 是 Ruby 标准库中 URI 实现的一个替代实现。它灵活、提供启发式解析,并提供了可扩展性。

1.6K stars0 点赞2 次浏览
访问官网GitHub

工具介绍

Addressable 是 Ruby 标准库中 URI 实现的一个替代实现。它灵活、提供启发式解析,并提供了可扩展性。

可寻址

主页github.com/sporkmonger/addressable 作者Bob Aman 版权版权 © Bob Aman 许可证Apache 2.0 ## 描述 Addressable 是 URI 实现的一个替代实现 这是 Ruby 的标准库的一部分。它灵活、提供启发式算法 它还提供了对 IRI 和 URI 模板的广泛支持。 Addressable 严格遵循 RFC 3986、RFC 3987 和 RFC 6570(第 4 级)。 ## 参考资料 - {Addressable::URI} - {Addressable::Template} ## 示例用法 ```ruby 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/"

uri = Addressable::URI.parse("http://www.詹姆斯.com/") uri.normalize #=> #<Addressable::URI:0xc9a4c8 URI:http://www.xn--8ws00zhy3a.com/>

## URI 模板

如需详细信息,请参阅[RFC 6570](https://www.rfc-editor.org/rfc/rfc6570.txt)。

[][gem]
[][actions]
[][coveralls]
[][inch]
[gem]: https://rubygems.org/gems/addressable
[actions]: https://github.com/sporkmonger/addressable/actions
[coveralls]: https://coveralls.io/r/sporkmonger/addressable
[inch]: https://inch-ci.org/github/sporkmonger/addressable

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rubyuriuri-template

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言