URI.hasQueryComponent

bool hasQueryComponent() const @nogc nothrow @safe

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

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

Returns

true if a query delimiter (`?`) was present in the parsed reference.