URI.hasFragmentComponent

bool hasFragmentComponent() const @nogc nothrow @safe

True if the fragment component is present (even if empty).

This distinguishes the absence of a fragment ("http://example.com") from an explicitly empty fragment ("http://example.com#").

Returns

true if a fragment delimiter (`#`) was present in the parsed reference.