PyUrl
No overview available.
Attributes
| Attribute | Type | Description |
|---|---|---|
| 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_empty | bool | Override to treat the path as empty when it is /. |
| serialized | OnceLock< 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
| Name | Type | Description |
|---|---|---|
| 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_empty | bool | A flag indicating whether to treat the path as empty when it is normalized to a forward slash. |