@maschinenlesbar.org/smard-cli
    Preparing search index...

    Function validateBaseUrl

    • Check a base URL against baseUrlProblem and return it as WHATWG parses it (URL#href: the host lower-cased, a default port dropped, the path percent-encoded where WHATWG does it), without trailing slashes: requests go to the URL every check of it reads (the host, the cleartext warning), and a transport that reads the URL as text reaches the same host. Throws SmardValidationError (Invalid baseUrl: <reason>). This is a configuration error, not a transport failure, so it is never a SmardNetworkError.

      Parameters

      • raw: string

      Returns string