( chainTailFn: ChainedInterceptorFn<any>, interceptor: HttpInterceptor, )
| 157 | * `ChainedInterceptorFn` interface. |
| 158 | */ |
| 159 | export function adaptLegacyInterceptorToChain( |
| 160 | chainTailFn: ChainedInterceptorFn<any>, |
| 161 | interceptor: HttpInterceptor, |
| 162 | ): ChainedInterceptorFn<any> { |
| 163 | return (initialRequest, finalHandlerFn) => |
| 164 | interceptor.intercept(initialRequest, { |
| 165 | handle: (downstreamRequest) => chainTailFn(downstreamRequest, finalHandlerFn), |
| 166 | }); |
| 167 | } |
| 168 | |
| 169 | /** |
| 170 | * Constructs a `ChainedInterceptorFn` which wraps and invokes a functional interceptor in the given |
nothing calls this directly
no test coverage detected
searching dependent graphs…