feat(http): add keepalive support for fetch requests#60621
feat(http): add keepalive support for fetch requests#60621SkyZeroZx wants to merge 2 commits intoangular:mainfrom
Conversation
|
Since this is a |
|
Show a warning when using keepalive in devMode with XHR instead of the Fetch API. |
|
Can you make sure to drop that merge commit. |
Now I do a rebase to remove the merge commit |
|
You'll probably have to update your main branch before rebasing to resolve that conflict. |
|
Could you please amend the commit message and remove the breaking change mention. |
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
It's ready, is there anything else missing? |
|
We still need an additional reviewer to approve, my approval scope doesn't cover that the http module. |
|
@crisbeto Is there anything missing to get approval for the merger? |
|
@JeanMeche Some tests failed even though they passed; it seems to be due to a timeout or other reason. |
|
Caretaker: this can merge, TAP is "green" |
mmalerba
left a comment
There was a problem hiding this comment.
reviewed-for: public-api
|
This PR was merged into the repository by commit ccc5cc0. The changes were merged into the following branches: main |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This commit adds support for the Fetch API's keepalive option when using HttpClient with the withFetch provider.
The change includes:
BREAKING CHANGE: None (pure additive feature)
Motivation/Use Cases
The
keepaliveoption is particularly useful for:Proposed Solution
keepaliveto theHttpRequestInitinterfaceHttpRequestclassFetchBackendto the native fetch APIExamples of New Usage