angular/packages/common/http/src
arturovt 57e8412e53 fix(http): check whether Zone is defined (#51119)
Accessing the `Zone` variable without checking if it's defined or not
leads to an error "Zone is not defined" if zone.js is not imported (nooped).
This commit adds an additional check before getting the current zone where
the `doRequest` is being called.

PR Close #51119
2023-07-21 16:45:26 +00:00
..
backend.ts refactor(http): introduce the functional interceptors API (#47502) 2022-10-06 19:02:45 +00:00
client.ts docs: update invalid links to the new http guides (#49456) 2023-06-22 17:06:59 -07:00
context.ts feat(http): add has() method to HttpContext class (#43887) 2021-11-04 18:52:18 +00:00
errors.ts refactor(http): tree-shakable error on JSONP request (#50376) 2023-05-24 13:58:49 +00:00
fetch.ts fix(http): check whether Zone is defined (#51119) 2023-07-21 16:45:26 +00:00
headers.ts feat(http): Introduction of the fetch Backend for the HttpClient (#50247) 2023-06-08 09:48:12 -07:00
interceptor.ts docs: update invalid links to the new http guides (#49456) 2023-06-22 17:06:59 -07:00
jsonp.ts docs: Make links out of @see tags (#50098) 2023-05-02 13:14:25 +02:00
module.ts refactor(http): simplify HttpClientModule XSRF configuration (#48957) 2023-02-17 11:17:53 -08:00
params.ts fix(common): properly cast http param values to strings (#42643) 2022-05-04 12:43:37 -07:00
provider.ts feat(http): Introduction of the fetch Backend for the HttpClient (#50247) 2023-06-08 09:48:12 -07:00
request.ts feat(http): Introduction of the fetch Backend for the HttpClient (#50247) 2023-06-08 09:48:12 -07:00
response.ts feat(http): Introduction of the fetch Backend for the HttpClient (#50247) 2023-06-08 09:48:12 -07:00
transfer_cache.ts fix(core): update ApplicationRef.isStable to account for rendering pending tasks (#50425) 2023-05-30 12:58:22 -07:00
xhr.ts refactor(http): replace zone.js macrotask creation with InitialRenderPendingTasks (#50425) 2023-05-30 12:58:22 -07:00
xsrf.ts fix(http): better handle unexpected undefined XSRF tokens (#47683) 2022-10-06 16:41:06 -07:00