angular/packages/common/http/test
Alex Rickabaugh 3ba99e286a feat(http): allow for child HttpClients to request via parents (#47502)
Ordinarily, providing `HttpClient` (either via `provideHttpClient` or the
`HttpClientModule`) creates an entirely separate HTTP context. Requests made
via that client are not passed through the interceptor chains that are
configured in a parent injector, for this example.

This commit introduces a new option for `provideHttpClient` called
`withRequestsMadeViaParent()`. When this option is passed, requests made in
the child context flow through any injectors, etc. and are then handed off
to the parent context.

This addresses a longstanding issue with interceptors where it's not
possible to extend the set of interceptors in a child context without
repeating all of the interceptors from the parent.

PR Close #47502
2022-10-06 19:02:46 +00:00
..
BUILD.bazel build: switch devmode output to es2015 (#44505) 2022-01-05 23:20:20 +00:00
client_spec.ts feat(http): improve error message for nullish header (#46059) 2022-06-16 14:39:41 -07:00
context_spec.ts feat(http): add has() method to HttpContext class (#43887) 2021-11-04 18:52:18 +00:00
headers_spec.ts feat(http): improve error message for nullish header (#46059) 2022-06-16 14:39:41 -07:00
jsonp_mock.ts refactor(http): change <script>'s ownerDocument in jsonp teardown (#36807) 2022-02-24 17:24:33 +00:00
jsonp_spec.ts build: update to jasmine 4.0 (#45558) 2022-04-11 16:25:28 +00:00
module_spec.ts refactor(common): ensure compatibility with noImplicitOverride (#42512) 2021-07-12 13:11:16 -07:00
params_spec.ts fix(common): properly cast http param values to strings (#42643) 2022-05-04 12:43:37 -07:00
provider_spec.ts feat(http): allow for child HttpClients to request via parents (#47502) 2022-10-06 19:02:46 +00:00
request_spec.ts test: clean up internal testing utilities (#42177) 2021-05-26 20:07:25 +00:00
response_spec.ts test: clean up internal testing utilities (#42177) 2021-05-26 20:07:25 +00:00
xhr_mock.ts fix(common): incorrect error type for XHR errors in TestRequest (#36082) 2021-11-19 21:26:52 +00:00
xhr_spec.ts perf(http): remove IE special status handling (#44354) 2022-02-04 11:45:15 -08:00
xsrf_spec.ts refactor(http): convert the XSRF interceptor to functional style (#47502) 2022-10-06 19:02:45 +00:00