angular/packages/common/http/test
Miles Malerba 2206efa55f feat(core): add special return statuses for resource params
Allows throwing from the resource's params function to transition the
resource to a status other than resolved.

In particular, the following values can be thrown from params:
- `ResourceParamsStatus.IDLE` causes the resource to become `idle`
  (equivalent to returning `undefined`)
- `ResourceParamsStatus.LOADING` causes the resource to become `loading`
- Any `Error` object causes the resource to become `error` and report
  the error that was thrown via `.error()`

To simplify chaining together resources, this PR also introduces a
context object passed into to the `params` functon. This context
contains a `chain` function that can be used to get the value of a
resource that the params want to depend on, while automatically
propagating the idle, loading, and erorr states of the resource forward.
2026-03-02 08:47:14 -08:00
..
BUILD.bazel test(http): remove zone-based testing utilities 2026-02-10 07:45:00 -08:00
client_spec.ts feat(http): add support for fetch referrerPolicy option in HttpClient (#64116) 2025-10-07 20:45:34 -04: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 feat(http): Use FetchBackend as default for the HttpBackend implementation 2026-02-26 13:47:02 -08: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 feat(http): Use FetchBackend as default for the HttpBackend implementation 2026-02-26 13:47:02 -08:00
request_spec.ts feat(http): add support for fetch referrerPolicy option in HttpClient (#64116) 2025-10-07 20:45:34 -04:00
resource_spec.ts feat(core): add special return statuses for resource params 2026-03-02 08:47:14 -08:00
response_spec.ts feat(http): Add reponseType property to HttpResponse and HttpErrorResponse (#63043) 2025-08-28 08:34:56 -07:00
transfer_cache_spec.ts test(http): remove zone-based testing utilities 2026-02-10 07:45:00 -08:00
xhr_mock.ts feat(http): Add timeout option to HTTP requests (#57194) 2025-06-27 09:56:25 +00:00
xhr_spec.ts refactor(http): add hooks for propagating traces across XHR callbacks. 2025-10-28 15:08:57 +01:00
xsrf_spec.ts fix(http): enable XSRF protection for same-origin absolute URLs 2025-12-03 12:19:43 +01:00