Skip to main content

PyUrl

No overview available.

Attributes

AttributeTypeDescription
lib_url[Url](../pydantic/core/pydantic/core/url.md?sid=pydantic_core__pydantic_core_url)The underlying URL object used for parsing and managing the standard components of the URI.
path_is_emptyboolOverride to treat the path as empty when it is /.
serializedOnceLock< String >Cache for the serialized representation where this diverges from lib_url.as_str().

Constructor

Signature

def PyUrl(
lib_url: [Url](../pydantic/core/pydantic/core/url.md?sid=pydantic_core__pydantic_core_url),
path_is_empty: bool
) - > null

Parameters

NameTypeDescription
lib_url[Url](../pydantic/core/pydantic/core/url.md?sid=pydantic_core__pydantic_core_url)The underlying URL object from the url crate.
path_is_emptyboolA flag indicating whether to treat the path as empty when it is normalized to a forward slash.