Skip to content

Support IHttpSysRequestInfoFeature and IHttpSysRequestTimingFeature in IIS in proc server #48663

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 5 commits into from
Jun 8, 2023

Conversation

NGloreous
Copy link
Contributor

Support IHttpSysRequestInfoFeature and IHttpSysRequestTimingFeature in IIS in proc server

IHttpSysRequestInfoFeature and IHttpSysRequestTimingFeature features are currently only supported in the Http.Sys server implementation. This change moves the implementation of these feature down to the shared layer and adds these features to the IIS in proc server.

Description

Access the detailed Http.sys request info is useful to applications regardless of where they are hosted (Http.sys standalone or IIS in proc). Currently this information is only exposed in the Http.sys standalone sever. This change updates the IIS in proc server to take a dependency on Microsoft.AspNetCore.Server.HttpSys.dll so it has access to the existing feature interfaces and moves the implementation of these interfaces into NativeRequestContext.cs which is shared between the two servers. Future changes to address adding APIs for the Http.sys information (tracked by #35012) can easily add support for both servers at the same time.

Fixes #3842

@ghost ghost added area-runtime community-contribution Indicates that the PR has been added by a community member labels Jun 7, 2023
@ghost
Copy link

ghost commented Jun 7, 2023

Thanks for your PR, @NGloreous. Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@Tratcher Tratcher enabled auto-merge (squash) June 7, 2023 20:47
auto-merge was automatically disabled June 7, 2023 21:15

Head branch was pushed to by a user without write access

@Tratcher Tratcher enabled auto-merge (squash) June 7, 2023 21:44
@Tratcher Tratcher merged commit 62c1334 into dotnet:main Jun 8, 2023
@ghost ghost added this to the 8.0-preview6 milestone Jun 8, 2023
@amcasey amcasey added area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions and removed area-runtime labels Aug 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions 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.

Expose timing and connection information in in-proc
3 participants