UNPKG

x-ng2-http-interceptor

Version:
29 lines (28 loc) 1.72 kB
import { InterceptorRequestInternal } from './interceptor-request-internal'; import { Request, RequestOptionsArgs, Response } from '@angular/http'; import { InterceptorRequestOptionsArgs } from './interceptor-request-options-args'; import { InterceptorResponseWrapper } from './interceptor-response-wrapper'; import { InterceptorResponseWrapperBuilder } from './interceptor-response-wrapper-builder'; /** * !!INTERNAL USE ONLY!! * Utility builder for creating a new instance of InterceptorResponseWrapper with additional ability to set internal properties aswell * Use InterceptorResponseWrapperBuilderInternal.new() to instantiate the builder */ export declare class InterceptorResponseWrapperBuilderInternal extends InterceptorResponseWrapperBuilder { static newInternal(interceptorStep: number, from?: Response | InterceptorResponseWrapper | InterceptorRequestInternal): InterceptorResponseWrapperBuilderInternal; /** * Use InterceptorResponseWrapperBuilderInternal.new() to instantiate the builder */ protected constructor(); url(url: string | Request): this; options(options: RequestOptionsArgs | InterceptorRequestOptionsArgs): this; response(response: Response | undefined): this; sharedData(sharedData: any): this; shortCircuitTriggeredBy(shortCircuitTriggeredBy: number): this; forceReturnResponse(forceReturnResponse: boolean): this; forceRequestCompletion(forceRequestCompletion: boolean): this; responseGeneratedByShortCircuitHandler(responseGeneratedByShortCircuitHandler: boolean): this; err(err: any): this; errEncounteredAt(errEncounteredAt: number): this; errEncounteredInRequestCycle(errEncounteredInRequestCycle: boolean): this; }