URI.normalize

URI normalize(UriOptions /*opt*/ ) const @safe

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

Currently UriOptions do not alter RFC3986 normalization rules. This overload exists to allow per-call policy injection without API explosion.

Parameters

optNormalization options.

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.