Registry / networking / addressable

addressable

JSON →
library2.9.0rbrubygemsunverified

An alternative implementation to the URI standard library, offering flexible heuristic parsing and extensive support for IRIs and URI templates.

gem install addressable
INSTALL
IMPORT
SIG · ADDRESSABLE
A
addressable
networkingrubyv2.9.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Addressable
require 'addressable/uri'

Parse and manipulate URIs with flexible heuristics

require 'addressable/uri' uri = Addressable::URI.parse('http://example.com/path?query=value') puts uri.scheme # => http puts uri.query_values # => {"query"=>"value"}
Debug
Known issues
gotchaAddressable::URI.parse may raise exceptions for malformed URIs that Ruby's URI would accept.
fix
Use Addressable::URI.heuristic_parse for more lenient parsing, or rescue Addressable::URI::InvalidURIError.
affects: >= 2.0
Upgrade
Version history
2.9.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
52 hits · last 30 days
node
44
OpenAI (training)
1
Resources
addressable — gem install addressable · libregistry