This commit is contained in:
zlwu committed 2026-07-15 08:05:38 +08:00
1 parent 87f7f6bf38
commit 5c6ace1dd3
4683 files changed
+1149971 -33842

No files matched your search

@@ -1,4 +1,3 @@
from typing import Union
from array import array
class URL:
@@ -10,18 +9,5 @@ class URL:
fragment: bytes
userinfo: bytes
def parse_url(url: Union[bytes, bytearray, memoryview, array]) -> URL:
"""Parse URL strings into a structured Python object.
Returns an instance of ``httptools.URL`` class with the
following attributes:
- schema: bytes
- host: bytes
- port: int
- path: bytes
- query: bytes
- fragment: bytes
- userinfo: bytes
"""
...
def parse_url(url: bytes | bytearray | memoryview | array[int]) -> URL:
"""Parse a URL string into a structured Python object."""