Astrada TypeScript SDK
    Preparing search index...

    Function normaliseRequestPath

    • The one path rule of the generic request method, the same in the three SDKs: the path must start with "/"; a "?", "#", "", space or control character in it, a broken percent escape, or an encoded "/", "", ".", "?", "#" or control character is refused (so an id containing an encoded slash cannot be sent this way); "." and ".." segments are resolved and empty segments (repeated or trailing slashes) dropped. The result is the path that is sent, and every check runs on that same path, decoded and in lower case.

      Parameters

      • path: string

      Returns { decoded: string; sent: string }