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

Class LegacyTagInterceptor

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

Source from the content-addressed store, hash-verified

645
646function provideLegacyInterceptor(tag: string): Provider {
647 class LegacyTagInterceptor implements HttpInterceptor {
648 intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {
649 return next.handle(addTagToRequest(req, tag));
650 }
651 }
652
653 const token = new InjectionToken(`LegacyTagInterceptor[${tag}]`, {
654 providedIn: 'root',

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected