Expand description
WHATWG URL Standard のパーサ(基本パーサの状態機械・ホスト解析・シリアライズ・セッター)。
new URL() / URL.canParse() / URL のセッターの実体。DOM にもカーネルにも依存しない純粋なロジック。
IDNA は UTS46 の完全な対応表を持たず、小文字化・全角 ASCII・句点・無視される文字・Punycode だけを扱う。
Structs§
Enums§
Functions§
- adapt 🔒
- apply_
setter nameは “protocol” “username” “password” “host” “hostname” “port” “pathname” “search” “hash”。- basic_
parse - 基本 URL パーサ。
url_inとov(state override)を渡すとセッター用の動き。 - c0 🔒
- default_
port 🔒 - digit_
char 🔒 - domain_
to_ ascii - enc_
char 🔒 - encode_
userinfo - encode_
with - ends_
in_ 🔒number - forbidden_
domain 🔒 - forbidden_
host 🔒 - has_
creds_ 🔒or_ port - hexval 🔒
- host_
parse - ipv4_
number 🔒 - ipv4_
parse 🔒 - ipv6_
parse 🔒 - ipv6_
serialize 🔒 - is_
double_ 🔒dot - is_
normalized_ 🔒wdl - is_
single_ 🔒dot - is_
special - is_wdl 🔒
- origin
- parse
- path_
string - percent_
decode_ 🔒bytes - punycode_
decode 🔒 - punycode_
encode 🔒 - push_
hex 🔒 - serialize
- set_
fragment 🔒 - set_
path 🔒 - set_
query 🔒 - set_
special_ 🔒query - set_
userinfo 🔒 - shorten 🔒
- starts_
with_ 🔒wdl - strip_
trailing_ 🔒spaces_ opaque