(tag: string, order: string[])
| 819 | } |
| 820 | |
| 821 | function makeOrderedTagInterceptorFn(tag: string, order: string[]): HttpInterceptorFn { |
| 822 | return (req, next) => { |
| 823 | order.push(`${tag}:request`); |
| 824 | return next(addTagToRequest(req, tag)).pipe( |
| 825 | tap((event) => { |
| 826 | if (event instanceof HttpResponse) { |
| 827 | order.push(`${tag}:response`); |
| 828 | } |
| 829 | }), |
| 830 | ); |
| 831 | }; |
| 832 | } |
| 833 | |
| 834 | function makeTokenTagInterceptorFn(tag: InjectionToken<string>): HttpInterceptorFn { |
| 835 | return (req, next) => next(addTagToRequest(req, inject(tag))); |
no test coverage detected