spec/lib/jspec.xhr.js
function(data) {
      var self = this
      this.data = data
      this.readyState = 4
      if (this.method == 'HEAD') this.responseText = null
      this.responseHeaders['content-length'] = (this.responseText || '').length
      if(this.async) this.onreadystatechange()
      lastRequest = function(){
        return self
      }
    }
function(data) {
      var self = this
      this.data = data
      this.readyState = 4
      if (this.method == 'HEAD') this.responseText = null
      this.responseHeaders['content-length'] = (this.responseText || '').length
      if(this.async) this.onreadystatechange()
      lastRequest = function(){
        return self
      }
    }
function ( data ) { var self = this this . data = data this . readyState = 4 if ( this . method == 'HEAD' ) this . responseText = null this . responseHeaders [ 'content-length' ] = ( this . responseText || '' ) . length if ( this . async ) this . onreadystatechange ( ) lastRequest = function ( ) { return self } }
Send request _data_.
Send request _data_ .