spec/lib/jspec.js
function(uri, data) {
      if (any(hook('posting', uri, data), haveStopped)) return
      var request = this.xhr()
      request.open('POST', uri, false)
      request.setRequestHeader('Content-Type', 'application/json')
      request.send(JSpec.JSON.encode(data))
    }
function(uri, data) {
      if (any(hook('posting', uri, data), haveStopped)) return
      var request = this.xhr()
      request.open('POST', uri, false)
      request.setRequestHeader('Content-Type', 'application/json')
      request.send(JSpec.JSON.encode(data))
    }
function ( uri , data ) { if ( any ( hook ( 'posting' , uri , data ) , haveStopped ) ) return var request = this . xhr ( ) request . open ( 'POST' , uri , false ) request . setRequestHeader ( 'Content-Type' , 'application/json' ) request . send ( JSpec . JSON . encode ( data ) ) }
Ad-hoc POST request for JSpec server usage.

@param  {string} uri
@param  {string} data
@api private
Ad - hoc POST request for JSpec server usage .