URI.hasAuthority

bool hasAuthority() const @nogc nothrow @safe

True if an authority component is present (i.e. the reference used the `//` form).

Returns

true if an authority component is present, false otherwise.