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

Method intercept

packages/common/http/test/provider_spec.ts:635–637  ·  view source on GitHub ↗
(req: HttpRequest<any>, next: HttpHandler)

Source from the content-addressed store, hash-verified

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}]`, {

Callers

nothing calls this directly

Calls 2

addTagToRequestFunction · 0.85
handleMethod · 0.65

Tested by

no test coverage detected