Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(http): introduce functional interceptors (#47502)
This commit introduces a new feature for `provideHttpClient` called `withInterceptors`. This feature exposes and configures the new concept of functional interceptors. Functional interceptors use functions instead of classes to implement an HTTP interceptor. Such interceptor functions have access to the DI context from the `EnvironmentInjector` in which they're configured via the `inject()` function. Otherwise, functional interceptors are identical in capability to the existing interceptor system. PR Close #47502
- Loading branch information
1 parent
fc69c80
commit 62c7a7a
Showing
4 changed files
with
141 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters