How to validation for sanitize_URL?

There are functions available for url sanitization. esc_url() is one of them.