angular/packages/common/http/test
Sebastian Barfurth 1b73c23597 fix(http): propagate plain errors when parsing fails (#62765)
The fetch backend now propagates the plain body when parsing the body fails.
This replicates the behavior of the XHR backend introduced in #19773.

The current state completely obfuscates errors of the "wrong" response type.
However, it's not uncommon for successful requests to return one type and
errors to return another type. Propagating the plain error allows downstream
error consumers to reason about the error body and decide how to parse it
depending on application needs.

PR Close #62765
2025-07-24 09:23:24 +00:00
..
BUILD.bazel build: migrate adev to use packaged version of @angular/* packages (#62413) 2025-07-02 16:10:25 +00:00
client_spec.ts refactor(common): convert scripts within packages/common to relative imports (#60623) 2025-04-01 15:58:51 +00:00
context_spec.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
fetch_spec.ts fix(http): propagate plain errors when parsing fails (#62765) 2025-07-24 09:23:24 +00:00
headers_spec.ts refactor(common): convert scripts within packages/common to relative imports (#60623) 2025-04-01 15:58:51 +00:00
jsonp_mock.ts refactor(core): remove TODOs referencing #24571 (#60648) 2025-03-31 20:24:29 +00:00
jsonp_spec.ts refactor(common): convert scripts within packages/common to relative imports (#60623) 2025-04-01 15:58:51 +00:00
module_spec.ts refactor(common): convert scripts within packages/common to relative imports (#60623) 2025-04-01 15:58:51 +00:00
params_spec.ts refactor(common): convert scripts within packages/common to relative imports (#60623) 2025-04-01 15:58:51 +00:00
provider_spec.ts refactor(common): use ngServerMode in HttpInterceptorHandler (#61605) 2025-06-04 14:13:15 -04:00
request_spec.ts feat(http): Add support for fetch referrer & integrity options in HttpClient (#62417) 2025-07-03 08:07:36 +00:00
resource_spec.ts feat(http): add referrer & integrity support for fetch requests in httpResource (#62461) 2025-07-14 11:40:54 -07:00
response_spec.ts refactor(common): convert scripts within packages/common to relative imports (#60623) 2025-04-01 15:58:51 +00:00
transfer_cache_spec.ts build: migrate common to use rules_js based toolchain (#61433) 2025-05-20 15:07:56 +00:00
xhr_mock.ts feat(http): Add timeout option to HTTP requests (#57194) 2025-06-27 09:56:25 +00:00
xhr_spec.ts feat(http): Add timeout option to HTTP requests (#57194) 2025-06-27 09:56:25 +00:00
xsrf_spec.ts refactor(common): drop platform checks in HttpXsrfCookieExtractor (#59810) 2025-05-01 08:41:10 -07:00