http_request.js 554 B

123456789101112131415161718
  1. /**
  2. * DevExtreme (core/http_request.js)
  3. * Version: 19.1.16
  4. * Build date: Tue Oct 18 2022
  5. *
  6. * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
  7. * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
  8. */
  9. "use strict";
  10. var windowUtils = require("./utils/window");
  11. var window = windowUtils.getWindow();
  12. var injector = require("./utils/dependency_injector");
  13. var nativeXMLHttpRequest = {
  14. getXhr: function() {
  15. return new window.XMLHttpRequest
  16. }
  17. };
  18. module.exports = injector(nativeXMLHttpRequest);