Open tejaede opened 7 years ago
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)
See https://github.com/kaazing/http2-cache.js/pull/40#issuecomment-324184983
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:
A simpler and more understandable API would be to have a boolean such as one of the following examples: