Proxy.js 507 B

123456789101112131415161718192021222324
  1. import DeveloperError from "./DeveloperError.js";
  2. /**
  3. * Base class for proxying requested made by {@link Resource}.
  4. *
  5. * @alias Proxy
  6. * @constructor
  7. *
  8. * @see DefaultProxy
  9. */
  10. function Proxy() {
  11. DeveloperError.throwInstantiationError();
  12. }
  13. /**
  14. * Get the final URL to use to request a given resource.
  15. *
  16. * @param {string} resource The resource to request.
  17. * @returns {string} proxied resource
  18. * @function
  19. */
  20. Proxy.prototype.getURL = DeveloperError.throwInstantiationError;
  21. export default Proxy;