MCPcopy
hub / github.com/pydantic/pydantic / AnyHttpUrl

Class AnyHttpUrl

pydantic/networks.py:562–569  ·  view source on GitHub ↗

A type that will accept any http or https URL. * TLD not required * Host not required

Source from the content-addressed store, hash-verified

560
561
562class AnyHttpUrl(AnyUrl):
563 """A type that will accept any http or https URL.
564
565 * TLD not required
566 * Host not required
567 """
568
569 _constraints = UrlConstraints(allowed_schemes=['http', 'https'])
570
571
572class HttpUrl(AnyUrl):

Callers 1

Calls 1

UrlConstraintsClass · 0.85

Tested by 1