You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Document HttpResponseMessage.Dispose will terminate response and notify the server #54294
HttpResponseMessage.Dispose() docs should mention that it will terminate a response early and send a notification to the server (e.g. HTTP/2 RST_STREAM).
I suppose we could do this, but it's sort of a low-level detail that is invisible to most people. And the behavior is version dependent.
Why does it matter? If a user disposes the HttpResponseMessage then they have indicated they don't care about the response anymore. Whether that actually cancels it on the wire or not seems like an implementation detail.
Found it: "Disposing a response that is in-progress can signal to the server that the response is no longer needed. This signal is implementation/protocol dependent"
Activity
geoffkizer commentedon Jun 16, 2021
I suppose we could do this, but it's sort of a low-level detail that is invisible to most people. And the behavior is version dependent.
Why does it matter? If a user disposes the HttpResponseMessage then they have indicated they don't care about the response anymore. Whether that actually cancels it on the wire or not seems like an implementation detail.
karelz commentedon Jun 22, 2021
Triage: @JamesNK do you want to put up PR with the language change from email exchange?
karelz commentedon Jun 24, 2021
Found it: "Disposing a response that is in-progress can signal to the server that the response is no longer needed. This signal is implementation/protocol dependent"