junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/UrlUtils.java
public static boolean startsWithHttpScheme(String url) {
		if (url == null || url.isEmpty()) {
			return false;
		}

		for (String scheme : HTTP_SCHEMES) {
			int prefixLength = scheme.length();
			if (url.length() > prefixLength) {
				String prefix = url.substring(0, prefixLength);
				if (prefix.equalsIgnoreCase(scheme)) {
					return true;
				}
			}
		}

		return false;
	}
public static boolean startsWithHttpScheme(String url) {
		if (url == null || url.isEmpty()) {
			return false;
		}

		for (String scheme : HTTP_SCHEMES) {
			int prefixLength = scheme.length();
			if (url.length() > prefixLength) {
				String prefix = url.substring(0, prefixLength);
				if (prefix.equalsIgnoreCase(scheme)) {
					return true;
				}
			}
		}

		return false;
	}
Check if given {@code url} starts with HTTP scheme (i.e {@code "http"} or {@code "https"}).

@param url The URL to check.
@return {@code true} if {@code url} starts with HTTP scheme, {@code false} otherwise.