code: function(method, url, async, user, password) {
        this.user = user
        this.password = password
        this.url = url
        this.readyState = 1
        this.method = method.toUpperCase()
        if (async != undefined) this.async = async
        if (this.async) this.onreadystatechange()
      }
docs: Open mock request.