url_parser.pyi 305 B

12345678910111213
  1. from array import array
  2. class URL:
  3. schema: bytes
  4. host: bytes
  5. port: int
  6. path: bytes
  7. query: bytes
  8. fragment: bytes
  9. userinfo: bytes
  10. def parse_url(url: bytes | bytearray | memoryview | array[int]) -> URL:
  11. """Parse a URL string into a structured Python object."""