x-ng2-http-interceptor
Version:
Adds interception capability around angular http api
34 lines (33 loc) • 1.54 kB
TypeScript
import { Request, RequestOptionsArgs } from '@angular/http';
import { InterceptorRequest } from './interceptor-request';
import { InterceptorRequestBuilder } from './interceptor-request-builder';
/**
* !!INTERNAL USE ONLY!!
* Utility builder for creating a new instance of _InterceptorRequest with additional ability to set internal properties aswell
* Use InterceptorRequestBuilderInternal.new() to instantiate the builder
*/
export declare class InterceptorRequestBuilderInternal extends InterceptorRequestBuilder {
static new(request?: InterceptorRequest): InterceptorRequestBuilderInternal;
/**
* Use InterceptorRequestBuilderInternal.new() to instantiate the builder
*/
protected constructor();
url(url: string | Request): this;
options(options: RequestOptionsArgs): this;
sharedData(sharedData: any): this;
shortCircuitAtCurrentStep(shortCircuitAtCurrentStep: boolean): this;
alsoForceRequestCompletion(alsoForceRequestCompletion: boolean): this;
alreadyShortCircuited(alreadyShortCircuited: boolean): this;
shortCircuitTriggeredBy(shortCircuitTriggeredBy: number): this;
err(err: any): this;
errEncounteredAt(errEncounteredAt: number): this;
getUrl(): string | Request;
getOptions(): RequestOptionsArgs;
getSharedData(): any;
getShortCircuitAtCurrentStep(): boolean;
getAlsoForceRequestCompletion(): boolean;
getAlreadyShortCircuited(): boolean;
getShortCircuitTriggeredBy(): number;
getErr(): any;
getErrEncounteredAt(): number;
}