-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Rebalance Kestrel's Known headers collection #31492
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
Comments
Three different SOAP actions? Thank goodness we all moved to REST 😈 |
Hehe, the initial data was case sensitive. I've removed the duplicates. |
|
Another area is could HTTP/2 and HTTP/1.x headers be split into different objects (don't know if the gprc headers are HTTP/2 only? /cc @JamesNK ) but |
This idea I like. |
DNT isn't necessary, nothing cares about it any more. |
#30417 already covers removing the HTTP/2 pseudo headers from the collection. I think we'd want to intercept them in OnHeader before they are even added to the collection and divert them to their own fields. |
PR to remove DNT while deciding on others #31493 |
grpc headers could be used in HTTP/1.1 with gRPC-Web, but optimizing gRPC-Web isn't a priority. |
Moved some of the common headers to either Request or Response #31495 |
Thanks for contacting us. |
Thanks for contacting us. We're moving this issue to the |
Uh oh!
There was an error while loading. Please reload this page.
Related to (#31374) @halter73 @benaadams @davidfowl
Kestrel has a fancy KnownHeaders collection for efficient handling of common request and response headers.
aspnetcore/src/Servers/Kestrel/shared/KnownHeaders.cs
Lines 16 to 31 in bc1ff6a
These lists have grown organically and should be revisited. We don't want to add too many entries since it makes the types consume more memory, but we do want to ensure most common headers are represented so we can avoid the slow path.
I've compared the current lists with headers customers have reported seeing in production. Here are some of the discrepancies:
Defined in commonHeaders, but only applies to responses? https://tools.ietf.org/html/rfc7231#section-7.4.1Defined in commonHeaders, but mainly used on responsesDefined in commonHeaders, but mainly used on responsesDefined in commonHeaders, but mainly used on responsesDefined in commonHeaders, but mainly used on responsesDefined in commonHeaders, but only applies to responses? https://tools.ietf.org/html/rfc7233#section-4.2Defined in commonHeaders, but mainly used on responsesDefined in commonHeaders, but mainly used on responsesThe text was updated successfully, but these errors were encountered: