Skip to content

Document what feature interfaces are typically available in HttpContext.Features and ConnectionContext.Features #13569

Open

Description

@halter73

@mconnew Pinged me recently asking "How do I get the remote client IP address from ConnectionContext?". This was for 2.1 before you could get this directly from the ConnectionContext. It highlighted how ConnectionContext Features, and by extension HttpContext Features, aren't very discoverable. I think a good doc could help with this.

Activity

  1. added
    area-servers
    on Jul 31, 2019
  2. added this to the Backlog milestone on Jul 31, 2019
  3. estebarbms commented on Nov 25, 2021

    @estebarbms

    Any update on this one? Actually I'm looking for getting the remote client IP from a ConnectionContext too

  4. JamesNK commented on Oct 6, 2022

    @JamesNK
    Member

    Request features are covered here: https://learn.microsoft.com/en-us/aspnet/core/fundamentals/request-features?view=aspnetcore-6.0

    (I think the list should be changed to a table)

    Could add something similar for connection features.

  5. added
    re-Aditya
    and removed on Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-serversdoc-ideare-Aditya

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions