Skip to content

Commit ccc5cc0

Browse files
SkyZeroZxmmalerba
authored andcommitted
feat(http): add keepalive support for fetch requests (angular#60621)
This commit adds support for the Fetch API's keepalive option when using HttpClient with the withFetch provider. The change includes: - Added keepalive to HttpRequestInit interface - Modified FetchBackend to pass the option - Added some unit test PR Close angular#60621
1 parent e711f99 commit ccc5cc0

File tree

9 files changed

+324
-6
lines changed

9 files changed

+324
-6
lines changed

goldens/public-api/common/http/errors.api.md

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ export const enum RuntimeErrorCode {
2121
// (undocumented)
2222
JSONP_WRONG_RESPONSE_TYPE = 2811,
2323
// (undocumented)
24+
KEEPALIVE_NOT_SUPPORTED_WITH_XHR = 2813,
25+
// (undocumented)
2426
MISSING_JSONP_MODULE = -2800,
2527
// (undocumented)
2628
NOT_USING_FETCH_BACKEND_IN_SSR = 2801,

0 commit comments

Comments
 (0)