URI.hasQuery

bool hasQuery() const @nogc nothrow @safe

True if the query component is present and non-empty.

Returns

true if the query string is non-empty, false otherwise.