8.16.0.4
9 Literal URLs
class | |||
| |||
| |||
method | |||
A LiteralURL object represents Literal URL string
that may not conform to the parsing implemented by url.URL.
for user, path, query and fragment components. When converting to a
string, only the components of those components that are not already
percent encoded are encoded. A component is considered to be percent
encoded if all of its percent characters are followed by two hexadecimal
characters.
Literal URLs are used automatically when handling redirects to avoid issues that may pop up when decoding an re-encoding URLs from standards-non-compliant servers.