Checks if the given URL is a valid HTTP URL.

isValidHTTPUrl('http://example.com') // true
isValidHTTPUrl('https://example.com') // true
isValidHTTPUrl('ftp://example.com') // false
isValidHTTPUrl('example.com') // false
  • Parameters

    • input: string

      The URL to check.

    Returns boolean

    A boolean indicating whether the URL is a valid HTTP URL.