(tag: InjectionToken<string>)
| 651 | } |
| 652 | |
| 653 | function makeTokenTagInterceptorFn(tag: InjectionToken<string>): HttpInterceptorFn { |
| 654 | return (req, next) => next(addTagToRequest(req, inject(tag))); |
| 655 | } |
| 656 | |
| 657 | function addTagToRequest(req: HttpRequest<unknown>, tag: string): HttpRequest<unknown> { |
| 658 | const prevTagHeader = req.headers.get('X-Tag') ?? ''; |
no test coverage detected
searching dependent graphs…