UNPKG

x-ng2-http-interceptor

Version:
29 lines (28 loc) 1.3 kB
import { Request, RequestOptionsArgs } from '@angular/http'; import { InterceptorRequest } from './interceptor-request'; /** * Utility builder for creating a new instance of InterceptorRequest * Use InterceptorRequestBuilder.new() to instantiate the builder */ export declare class InterceptorRequestBuilder { protected _url: string | Request; protected _options?: RequestOptionsArgs; protected _sharedData?: any; protected _shortCircuitAtCurrentStep?: boolean; protected _alsoForceRequestCompletion?: boolean; protected _alreadyShortCircuited?: boolean; protected _shortCircuitTriggeredBy?: number; protected _err?: any; protected _errEncounteredAt?: number; static new(request: InterceptorRequest): InterceptorRequestBuilder; /** * Use InterceptorRequestBuilder.new() to instantiate the builder */ protected constructor(); url(url: string | Request): InterceptorRequestBuilder; options(options: RequestOptionsArgs): InterceptorRequestBuilder; sharedData(sharedData: any): InterceptorRequestBuilder; shortCircuitAtCurrentStep(shortCircuitAtCurrentStep: boolean): InterceptorRequestBuilder; alsoForceRequestCompletion(alsoForceRequestCompletion: boolean): InterceptorRequestBuilder; build(): InterceptorRequest; }