MCPcopy Create free account
hub / github.com/angular/angular / LegacyTagInterceptor

Class LegacyTagInterceptor

packages/common/http/test/provider_spec.ts:634–638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

632
633function provideLegacyInterceptor(tag: string): Provider {
634 class LegacyTagInterceptor implements HttpInterceptor {
635 intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {
636 return next.handle(addTagToRequest(req, tag));
637 }
638 }
639
640 const token = new InjectionToken(`LegacyTagInterceptor[${tag}]`, {
641 providedIn: 'root',

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected