Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tejaede opened this issue Aug 18, 2017 · 1 comment
Open

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

tejaede opened this issue Aug 18, 2017 · 1 comment

Comments

@tejaede
Copy link
Collaborator

tejaede commented Aug 18, 2017

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)
@hthetiot hthetiot self-assigned this Aug 18, 2017
@hthetiot
Copy link
Contributor

See #40 (comment)

@hthetiot hthetiot modified the milestones: Future, 1.0.2 Enhancements Aug 28, 2017
@dpwspoon dpwspoon removed this from the 1.0.2 Enhancements milestone Sep 9, 2017
@hthetiot hthetiot removed their assignment Sep 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants