isHttp

val String.isHttp: Boolean

If the string is an HTTP URL (ie Starts with http:// or https://)

Example:

"http://www.affogato.com".isHttp // true
"http://www.affogato.com".isHttp // true
"htt://www//".isHttp // false

Since

1.1.0