ahmadnassri/httpsnippet

View on GitHub
src/targets/javascript/xhr/fixtures/nested.js

Summary

Maintainability
A
50 mins
Test Coverage
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', 'http://mockbin.com/har?foo%5Bbar%5D=baz%2Czap&fiz=buz&key=value');

xhr.send(data);