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

Class LegacyTagInterceptor

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

Source from the content-addressed store, hash-verified

874
875function provideLegacyInterceptor(tag: string): Provider {
876 class LegacyTagInterceptor implements HttpInterceptor {
877 intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {
878 return next.handle(addTagToRequest(req, tag));
879 }
880 }
881
882 const token = new InjectionToken(`LegacyTagInterceptor[${tag}]`, {
883 providedIn: 'root',

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected