Returns the DPoP htu of a request URL: scheme and host lower case, the default port removed, no query and no fragment (RFC 9449 4.2 and 4.3).
htu
The request URL.
The normalized URL.
normalizeHtu("HTTPS://Example.COM:443/api/v1/runs?x=1#f"); // "https://example.com/api/v1/runs" Copy
normalizeHtu("HTTPS://Example.COM:443/api/v1/runs?x=1#f"); // "https://example.com/api/v1/runs"
Returns the DPoP
htuof a request URL: scheme and host lower case, the default port removed, no query and no fragment (RFC 9449 4.2 and 4.3).