tornado-cli/local_modules/web3-providers-http/local_modules/xhr2-cookies
2021-12-08 01:52:08 +09:00
..
dist Add local modules to fix http headers privacy problem 2021-12-08 01:52:08 +09:00
test Add local modules to fix http headers privacy problem 2021-12-08 01:52:08 +09:00
.gitignore Add local modules to fix http headers privacy problem 2021-12-08 01:52:08 +09:00
.npmignore Add local modules to fix http headers privacy problem 2021-12-08 01:52:08 +09:00
errors.ts Add local modules to fix http headers privacy problem 2021-12-08 01:52:08 +09:00
index.ts Add local modules to fix http headers privacy problem 2021-12-08 01:52:08 +09:00
package.json Add local modules to fix http headers privacy problem 2021-12-08 01:52:08 +09:00
progress-event.ts Add local modules to fix http headers privacy problem 2021-12-08 01:52:08 +09:00
README.md Add local modules to fix http headers privacy problem 2021-12-08 01:52:08 +09:00
tsconfig.json Add local modules to fix http headers privacy problem 2021-12-08 01:52:08 +09:00
tslint.json Add local modules to fix http headers privacy problem 2021-12-08 01:52:08 +09:00
wallaby.js Add local modules to fix http headers privacy problem 2021-12-08 01:52:08 +09:00
xml-http-request-event-target.ts Add local modules to fix http headers privacy problem 2021-12-08 01:52:08 +09:00
xml-http-request-upload.ts Add local modules to fix http headers privacy problem 2021-12-08 01:52:08 +09:00
xml-http-request.ts Add local modules to fix http headers privacy problem 2021-12-08 01:52:08 +09:00
yarn.lock Add local modules to fix http headers privacy problem 2021-12-08 01:52:08 +09:00

XMLHttpRequest polyfill for node.js

Based on https://github.com/pwnall/node-xhr2/tree/bd6d48431ad93c8073811e5d4b77394dd637a85a

  • Adds support for cookies
  • Adds in-project TypeScript type definitions
  • Switched to TypeScript

Cookies

  • saved in XMLHttpRequest.cookieJar
  • saved between redirects
  • saved between requests
  • can be cleared by doing:
import * as Cookie from 'cookiejar';
XMLHttpRequest.cookieJar = Cookie.CookieJar();

Aims

  • Provide full XMLHttpRequest features to Angular Universal HttpClient & node-angular-http-client

Changelog

1.1.0

  • added saving of cookies between requests, not just redirects
  • bug fixes
  • most tests from xhr2 ported over and passing