Url object class which can perform various transformations on url strings.

Hierarchy

  • UrlString

Constructors

  • Parameters

    • url: string

    Returns UrlString

Accessors

  • get urlString(): string
  • Returns string

Methods

  • Returns the anchor part(#) of the URL

    Returns string

  • Parses out the components from a url string.

    Returns IUri

    An object with the various components. Please cache this value insted of calling this multiple times on the same url.

  • Throws if urlString passed is not a valid authority URI string.

    Returns void

  • Given a url and a query string return the url with provided query string appended

    Parameters

    • url: string
    • queryString: string

    Returns string

  • Ensure urls are lower case and end with a / character.

    Parameters

    • url: string

    Returns string

  • Parameters

    Returns UrlString

  • Parameters

    • relativeUrl: string
    • baseUrl: string

    Returns string

  • Returns either deserialized query string or deserialized hash, depending on the serverResponseType as a server auth code response object.

    Parameters

    Returns ServerAuthorizationCodeResponse

  • Parameters

    • url: string

    Returns string

  • Check if the hash of the URL string contains known properties

    Parameters

    • hash: string

    Returns boolean

  • Parses hash string from given string. Returns empty string if no hash symbol is found.

    Parameters

    • hashString: string

    Returns string

  • Parses query server response string from given string. Extract hash between '?code=' and '#' if trailing '# is present. Returns empty string if no query symbol is found.

    Parameters

    • queryString: string

    Returns string

  • Parses query string from given string. Returns empty string if no query symbol is found.

    Parameters

    • queryString: string

    Returns string

  • Returns a url with the hash removed

    Parameters

    • url: string

    Returns string

Generated using TypeDoc