-
Notifications
You must be signed in to change notification settings - Fork 27k
feat(http): add keepalive support for fetch requests #60621
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reviewed-for: public-api
alxhub
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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