x-ng2-http-interceptor
Version:
Adds interception capability around angular http api
36 lines • 1.47 kB
JavaScript
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
import { InterceptorRequest } from './interceptor-request';
export var InterceptorRequestInternal = (function (_super) {
__extends(InterceptorRequestInternal, _super);
/**
* Hack
* TODO: Point to typescript bug
*/
function InterceptorRequestInternal() {
_super.call(this, null);
}
InterceptorRequestInternal.prototype.getShortCircuitAtCurrentStep = function () {
return this._shortCircuitAtCurrentStep;
};
InterceptorRequestInternal.prototype.getAlsoForceRequestCompletion = function () {
return this._alsoForceRequestCompletion;
};
InterceptorRequestInternal.prototype.getAlreadyShortCircuited = function () {
return this._alreadyShortCircuited;
};
InterceptorRequestInternal.prototype.getShortCircuitTriggeredBy = function () {
return this._shortCircuitTriggeredBy;
};
InterceptorRequestInternal.prototype.getErr = function () {
return this._err;
};
InterceptorRequestInternal.prototype.getErrEncounteredAt = function () {
return this._errEncounteredAt;
};
return InterceptorRequestInternal;
}(InterceptorRequest));
//# sourceMappingURL=interceptor-request-internal.js.map