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

Function makeTokenTagInterceptorFn

packages/common/http/test/provider_spec.ts:653–655  ·  view source on GitHub ↗
(tag: InjectionToken<string>)

Source from the content-addressed store, hash-verified

651}
652
653function makeTokenTagInterceptorFn(tag: InjectionToken<string>): HttpInterceptorFn {
654 return (req, next) => next(addTagToRequest(req, inject(tag)));
655}
656
657function addTagToRequest(req: HttpRequest<unknown>, tag: string): HttpRequest<unknown> {
658 const prevTagHeader = req.headers.get('X-Tag') ?? '';

Callers 1

provider_spec.tsFile · 0.85

Calls 3

injectFunction · 0.90
addTagToRequestFunction · 0.85
nextFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…