Skip to content

Document HttpResponseMessage.Dispose will terminate response and notify the server #54294

Closed
dotnet/dotnet-api-docs
#6970

Description

@JamesNK

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).

https://docs.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage.dispose?view=net-5.0

Activity

  1. added
    documentation
    on Jun 16, 2021
  2. ghost added
    untriaged
    on Jun 16, 2021
  3. geoffkizer commented on Jun 16, 2021

    @geoffkizer
    Contributor

    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.

  4. karelz commented on Jun 22, 2021

    @karelz
    Member

    Triage: @JamesNK do you want to put up PR with the language change from email exchange?

  5. karelz commented on Jun 24, 2021

    @karelz
    Member

    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"

  6. removed
    untriaged
    on Jun 24, 2021
  7. added this to the 6.0.0 milestone on Jun 24, 2021
  8. self-assigned this
    on Aug 4, 2021
  9. ghost locked as resolved and limited conversation to collaborators on Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-System.Net.Httpdocumentation

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions