AnyHttpUrl
A type that will accept any http or https URL.
Methods
_constraints()
def _constraints() - > [UrlConstraints](urlconstraints.md?sid=pydantic_networks_urlconstraints)
Defines the validation constraints for the URL type, specifically restricting the allowed protocols to HTTP and HTTPS.
Returns
| Type | Description |
|---|---|
[UrlConstraints](urlconstraints.md?sid=pydantic_networks_urlconstraints) | A configuration object that enforces scheme validation for URL instances. |