escape_uri_path
Escape the unsafe characters from the path portion of a Uniform Resource Identifier (URI).
def escape_uri_path(
path: string
) - > string
Escape the unsafe characters from the path portion of a Uniform Resource Identifier (URI).
Parameters
| Name | Type | Description |
|---|---|---|
| path | string | The raw URI path string containing characters that need to be escaped according to RFC 3986. |
Returns
| Type | Description |
|---|---|
string | The URI-encoded path string where unsafe characters are replaced by percent-encoded sequences, while preserving valid path delimiters and sub-delimiters. |