B2G/gecko/services/common/rest.js
/**
   * Boolean flag that indicates whether the HTTP status code is 2xx or not.
   */
Boolean flag that indicates whether the HTTP status code is 2xx or not.
Boolean flag that indicates whether the HTTP status code is 2xx or not .
get success() {
    let success;
    try {
      let channel = this.request.channel.QueryInterface(Ci.nsIHttpChannel);
      success = channel.requestSucceeded;
    } catch (ex) {
      this._log.debug("Caught exception fetching HTTP success flag:" +
                      CommonUtils.exceptionStr(ex));
      return null;
    }
    delete this.success;
    return this.success = success;
  }
get success ( ) { let success ; try { let channel = this . request . channel . QueryInterface ( Ci . nsIHttpChannel ) ; success = channel . requestSucceeded ; } catch ( ex ) { this . _log . debug ( "Caught exception fetching HTTP success flag:" + CommonUtils . exceptionStr ( ex ) ) ; return null ; } delete this . success ; return this . success = success ; }
Boolean flag that indicates whether the HTTP status code is 2xx or not.
Boolean flag that indicates whether the HTTP status code is 2xx or not .