Pydantic · Type Alias
AnyUrl
Pydantic URL types validate and parse URLs, HTTP URLs, WebSocket URLs, file URLs, and database connection strings. Choose a specialized type when the scheme, host, credentials, or length must follow a rule.
Last updated
Syntax
class Model(BaseModel):
url: HttpUrlIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
AnyUrlAnyHttpUrlHttpUrlFileUrlAnyWebsocketUrlWebsocketUrlPostgresDsnMySQLDsn