Skip to content

End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

class method

URI.register_scheme

register_scheme(scheme, klass)

Register the given klass to be instantiated when parsing URLs with the given scheme. Note that currently only schemes which after .upcase are valid constant names can be registered (no -/+/. allowed).

See also .regexp .scheme_list .parse .split also in 4.1 · 4.0 · 3.4 · 3.3 · 3.1