Skip to content

HttpLoggingMiddleware + Websockets/Upgrade #40841

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

Merged
merged 16 commits into from
Mar 25, 2022
Merged

Conversation

gfr-g
Copy link
Contributor

@gfr-g gfr-g commented Mar 23, 2022

HttpLoggingMiddleware + Websockets/Upgrade #31962

  • You've read the Contributor Guide and Code of Conduct.
  • You've included unit or integration tests for your change, where applicable.
  • You've included inline docs for your change, where applicable.
  • There's an open issue for the PR that you are making. If you'd like to propose a new feature or change, please open an issue to discuss the change or find an existing issue.

HttpLoggingMiddleware now logs response headers following an upgrade connection request as soon as the response is sent to the client.

Description

A new decorator around the IHttpUpgradeFeature has been introduced in the HttpLoggingMiddleware in order to log the response headers while the middleware pipeline is still running due to the connection being upgraded.

Fixes #31962

@ghost ghost added area-runtime community-contribution Indicates that the PR has been added by a community member labels Mar 23, 2022
@dnfadmin
Copy link

dnfadmin commented Mar 23, 2022

CLA assistant check
All CLA requirements met.

@BrennanConroy BrennanConroy changed the title Issue/31962 HttpLoggingMiddleware + Websockets/Upgrade Mar 25, 2022
@gfr-g gfr-g requested a review from Tratcher March 25, 2022 16:59
Copy link
Member

@Tratcher Tratcher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll let @wtgodbe take a look also.

Co-authored-by: Chris Ross <Tratcher@Outlook.com>
@gfr-g gfr-g requested a review from halter73 as a code owner March 25, 2022 18:31
@Tratcher Tratcher enabled auto-merge (squash) March 25, 2022 18:41
@Tratcher Tratcher added this to the 7.0-preview4 milestone Mar 25, 2022
@Tratcher Tratcher merged commit 5a5b2e2 into dotnet:main Mar 25, 2022
@ghost ghost modified the milestones: 7.0-preview4, 7.0-preview3 Mar 25, 2022
@Tratcher
Copy link
Member

Thanks

@amcasey amcasey added area-middleware Includes: URL rewrite, redirect, response cache/compression, session, and other general middlewares and removed area-runtime labels Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-middleware Includes: URL rewrite, redirect, response cache/compression, session, and other general middlewares community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HttpLoggingMiddleware + Websockets/Upgrade
7 participants