(tag: string, order: string[])
| 896 | } |
| 897 | |
| 898 | function makeOrderedTagInterceptorFn(tag: string, order: string[]): HttpInterceptorFn { |
| 899 | return (req, next) => { |
| 900 | order.push(`${tag}:request`); |
| 901 | return next(addTagToRequest(req, tag)).pipe( |
| 902 | tap((event) => { |
| 903 | if (event instanceof HttpResponse) { |
| 904 | order.push(`${tag}:response`); |
| 905 | } |
| 906 | }), |
| 907 | ); |
| 908 | }; |
| 909 | } |
| 910 | |
| 911 | function makeTokenTagInterceptorFn(tag: InjectionToken<string>): HttpInterceptorFn { |
| 912 | return (req, next) => next(addTagToRequest(req, inject(tag))); |
no test coverage detected