Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Pull request Compare This branch is even with tinyhippos:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
tests
README.md
XMLHttpRequest.js
autotest.watchr
demo.js
package.json

README.md

node-XMLHttpRequest

node-XMLHttpRequest is arapper for the built-in http client to emulate the browser XMLHttpRequest object.

This can be used with JS designed for browsers to improve reuse of code and allow the use of existing libraries.

Usage

Here's how to include the module in your project and use as the browser-based XHR object.

var XMLHttpRequest = require("XMLHttpRequest").XMLHttpRequest;
var xhr = new XMLHttpRequest();

Refer to W3C specs for XHR methods.

TODO

  • Add basic authentication
  • Additional unit tests
  • Possibly move from http to tcp for more flexibility
Something went wrong with that request. Please try again.