( chainTailFn: ChainedInterceptorFn<unknown>, interceptorFn: HttpInterceptorFn, injector: EnvironmentInjector, )
| 165 | * injector. |
| 166 | */ |
| 167 | export function chainedInterceptorFn( |
| 168 | chainTailFn: ChainedInterceptorFn<unknown>, |
| 169 | interceptorFn: HttpInterceptorFn, |
| 170 | injector: EnvironmentInjector, |
| 171 | ): ChainedInterceptorFn<unknown> { |
| 172 | return (initialRequest, finalHandlerFn) => |
| 173 | runInInjectionContext(injector, () => |
| 174 | interceptorFn(initialRequest, (downstreamRequest) => |
| 175 | chainTailFn(downstreamRequest, finalHandlerFn), |
| 176 | ), |
| 177 | ); |
| 178 | } |
| 179 | |
| 180 | /** |
| 181 | * A multi-provider token that represents the array of registered |
no test coverage detected