mirror of
https://github.com/erg-lang/erg.git
synced 2025-07-19 11:05:44 +00:00
21 lines
534 B
Python
21 lines
534 B
Python
.urlparse: (urlstring: Str, scheme := Str, allow_fragments := Bool) -> NamedTuple {
|
|
.scheme = Str;
|
|
.netloc = Str;
|
|
.path = Str;
|
|
.params = Str;
|
|
.query = Str;
|
|
.fragment = Str;
|
|
.username = Str or NoneType;
|
|
.password = Str or NoneType;
|
|
.hostname = Str or NoneType;
|
|
.port = Int or NoneType;
|
|
}
|
|
.parse_qs: (
|
|
qs: Str,
|
|
keep_blank_values := Bool,
|
|
strict_parsing := Bool,
|
|
encoding := Str,
|
|
errors := Str,
|
|
max_num_fields := Nat or NoneType,
|
|
separator := Str,
|
|
) -> {Str: [Str; _]}
|