URI.normalize

URI normalize(const UriOptions opt) const @safe

Return a new URI normalized per RFC 3986 Section 6 with options.

Note

opt is currently ignored — normalization always applies the RFC 3986

Section 6 rules regardless of options. The parameter is retained so call sites can pass policies without API changes when options gain an effect.

Parameters

optNormalization options (currently ignored).

Returns

A normalized copy of this URI.
URI normalize() const @safe

Return a new URI normalized per RFC 3986 Section 6.

Applies case normalization (scheme, host), dot-segment removal for the path, percent-encoding normalization for all components, and elides default ports where known.