@pumpkin-plugins/port-mapping API / url / parseHttpUrl
Function: parseHttpUrl()
parseHttpUrl(
text):HttpUrl|undefined
Defined in: tools/port-mapping/src/url.ts:15
Reads an http:// URL with an IPv4 host. Scans delimiters directly to avoid regex denial of service on long, untrusted router URLs.
Parameters
text
string
Returns
HttpUrl | undefined
The parts, or undefined for anything else (https, host names, IPv6).