diff options
| author | Thijs Schreijer <thijs@thijsschreijer.nl> | 2026-08-30 15:34:15 +0200 |
|---|---|---|
| committer | Thijs Schreijer <thijs@thijsschreijer.nl> | 2026-08-30 15:34:15 +0200 |
| commit | 6fe110be47c0fc34bc9dce6d377ce9b48ab27c2e (patch) | |
| tree | 15eabb11745033d916e61c565ea4205bae84d0fe /src/http.lua | |
| parent | 84c2bb905bda5f1fc58195171c75723b5fec6e87 (diff) | |
| download | luasocket-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
