Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

README.md 2.4 KiB

há 3 anos
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # node-XMLHttpRequest #
  2. Fork of [node-XMLHttpRequest](https://github.com/driverdan/node-XMLHttpRequest) by [driverdan](http://driverdan.com). Forked and published to npm because a [pull request](https://github.com/rase-/node-XMLHttpRequest/commit/a6b6f296e0a8278165c2d0270d9840b54d5eeadd) is not being created and merged. Changes made by [rase-](https://github.com/rase-/node-XMLHttpRequest/tree/add/ssl-support) are needed for [engine.io-client](https://github.com/Automattic/engine.io-client).
  3. ## Usage ##
  4. Here's how to include the module in your project and use as the browser-based
  5. XHR object.
  6. var XMLHttpRequest = require("xmlhttprequest-ssl").XMLHttpRequest;
  7. var xhr = new XMLHttpRequest();
  8. Note: use the lowercase string "xmlhttprequest-ssl" in your require(). On
  9. case-sensitive systems (eg Linux) using uppercase letters won't work.
  10. # Original README #
  11. ## Usage ##
  12. Here's how to include the module in your project and use as the browser-based
  13. XHR object.
  14. var XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest;
  15. var xhr = new XMLHttpRequest();
  16. Note: use the lowercase string "xmlhttprequest" in your require(). On
  17. case-sensitive systems (eg Linux) using uppercase letters won't work.
  18. ## Versions ##
  19. Prior to 1.4.0 version numbers were arbitrary. From 1.4.0 on they conform to
  20. the standard major.minor.bugfix. 1.x shouldn't necessarily be considered
  21. stable just because it's above 0.x.
  22. Since the XMLHttpRequest API is stable this library's API is stable as
  23. well. Major version numbers indicate significant core code changes.
  24. Minor versions indicate minor core code changes or better conformity to
  25. the W3C spec.
  26. ## License ##
  27. MIT license. See LICENSE for full details.
  28. ## Supports ##
  29. * Async and synchronous requests
  30. * GET, POST, PUT, and DELETE requests
  31. * All spec methods (open, send, abort, getRequestHeader,
  32. getAllRequestHeaders, event methods)
  33. * Requests to all domains
  34. ## Known Issues / Missing Features ##
  35. For a list of open issues or to report your own visit the [github issues
  36. page](https://github.com/driverdan/node-XMLHttpRequest/issues).
  37. * Local file access may have unexpected results for non-UTF8 files
  38. * Synchronous requests don't set headers properly
  39. * Synchronous requests freeze node while waiting for response (But that's what you want, right? Stick with async!).
  40. * Some events are missing, such as abort
  41. * getRequestHeader is case-sensitive
  42. * Cookies aren't persisted between requests
  43. * Missing XML support
  44. * Missing basic auth