Skip to content

Add method to allow application to check if URL is proxied #39

Description

@tejaede

Use Case: A snippet of javascript code is used to send requests to 2 URLs: http://proxied.org/query and http://origin-server.org/query

Currently, the application can check if a URL will be proxied in the following way:

_isURLAccelerated: {
    value: function (url) {
        return !!XMLHttpRequest.configuration.getTransportUrl(url);
    }
}

A simpler and more understandable API would be to have a boolean such as one of the following examples:

XMLHttpRequest.isURLProxied(url)
XMLHttpRequest.configuration.isURLProxied(url)
XMLHttpRequest.isURLAccelerated(url)
XMLHttpRequest.configuration.isURLAccelerated(url)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions