MCPcopy Index your code
hub / github.com/angular/angular / intercept

Method intercept

packages/common/http/src/xsrf.ts:136–140  ·  view source on GitHub ↗
(initialRequest: HttpRequest<any>, next: HttpHandler)

Source from the content-addressed store, hash-verified

134 private readonly injector = inject(EnvironmentInjector);
135
136 intercept(initialRequest: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {
137 return runInInjectionContext(this.injector, () =>
138 xsrfInterceptorFn(initialRequest, (downstreamRequest) => next.handle(downstreamRequest)),
139 );
140 }
141}

Callers

nothing calls this directly

Calls 3

runInInjectionContextFunction · 0.90
xsrfInterceptorFnFunction · 0.85
handleMethod · 0.65

Tested by

no test coverage detected