bothy-sdk
    Preparing search index...

    Function normalizeHtu

    • 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).

      Parameters

      • url: string

        The request URL.

      Returns string

      The normalized URL.

      normalizeHtu("HTTPS://Example.COM:443/api/v1/runs?x=1#f"); // "https://example.com/api/v1/runs"