-
Notifications
You must be signed in to change notification settings - Fork 26.5k
fix(http): Add missing timeout
and transferCache
options to HttpClient
#62586
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
The `timeout` option is implemented in the different HTTP backends, but the option is not actually passed to the backends. `transferCache` is also missing in one signature. This commit adds both options to `HttpClient`. Fixes angular#62581
3644234
to
679822e
Compare
By looking at the PR I don't see any changes around |
I pointed out where it's added in a review. Also, I had also mentioned transferCache in general in my PR comment. Iit's absent for PUT, but is present for POST. It does seem inconsistent to me, but I might be overlooking something. Was wondering if I should update the commit to add it everywhere. |
The reasoning behind that is that |
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.
Whoa whoa whoa...timeout!
Sorry, couldn't resist. LGTM!
reviewed-for: fw-general, public-api
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 1408baf. The changes were merged into the following branches: main |
The
timeout
option is implemented in the different HTTP backends, but the option is not actually passed to the backends.transferCache
is also missing in one signature. This commit adds both options toHttpClient
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
Issue Number: N/A
Other information
I noticed while doing this that the
transferCache
option is not always passed. I am not sure why, but in DELETE and PUT requests it's absent, while for GET and POST requests, it is there.While I understand why it's there for GET, I question why it's absent in PUT if POST has the option. I believe it should be added everywhere for consistency. I can change this PR to do that if needed.