aboutsummaryrefslogtreecommitdiff
path: root/src/http.lua
diff options
context:
space:
mode:
authorThijs Schreijer <thijs@thijsschreijer.nl>2026-08-30 15:34:15 +0200
committerThijs Schreijer <thijs@thijsschreijer.nl>2026-08-30 15:34:15 +0200
commit6fe110be47c0fc34bc9dce6d377ce9b48ab27c2e (patch)
tree15eabb11745033d916e61c565ea4205bae84d0fe /src/http.lua
parent84c2bb905bda5f1fc58195171c75723b5fec6e87 (diff)
downloadluasocket-6fe110be47c0fc34bc9dce6d377ce9b48ab27c2e.tar.gz
luasocket-6fe110be47c0fc34bc9dce6d377ce9b48ab27c2e.tar.bz2
luasocket-6fe110be47c0fc34bc9dce6d377ce9b48ab27c2e.zip
feat(url): classify host as name/ipv4/ipv6 in parse and build
parse() now sets hosttype ("name"/"ipv4"/"ipv6") plus a matching hostname/ipv4/ipv6 field alongside host. build() accepts those same fields when host is absent, erroring if more than one is set. classify_host is exported for standalone use; it classifies by shape (colon present -> ipv6, dotted-quad shape -> ipv4) rather than validating the address.
Diffstat (limited to 'src/http.lua')
0 files changed, 0 insertions, 0 deletions