Scheme in URL type is a string type. I do not think URL type can help.
We may change it to contain the "http" or "https" string instead of the bool type.