net
native moduleOffline URL toolkit only — not a network client. import "net". Live sockets/DNS/HTTP are deferred (HTTP(S) stays an extension since Odin core has no TLS).
net.url_parse(url: string) => mapnet.percent_encode(s: string) => stringnet.percent_decode(s: string) => (string, string?)
net.url_parse(url: string) => map
Split a URL into scheme, host, path, fragment, query (nested decoded map).
net.percent_encode(s: string) => string
URL-encode s.
net.percent_decode(s: string) => (string, string?)
URL-decode; ("", "invalid percent-encoding") on failure.