Adding a new Enhanced Connect :protocol pseudo-header #42002
Labels
api-needs-work
API needs work before it is approved, it is NOT ready for implementation
area-networking
Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
Milestone
Background and Motivation
I would like to propose adding a new protocol pseudo-header to
HeaderNames
. This will be helpful for adding support for new protocols to the stack that use the new Enhanced CONNECT method (e.g WebTransport (#41877) or WebSockets over HTTP/2 (#41558)). Currently there isn't such a pseudo-header. Therefore, we would need to hardcode it in the code currently. This proposed change would abstract the actual value into theHeaderNames
file and thus help with maintainability as well as keep it more consistent with how the repo handles all the other headers and pseudo-headers.Proposed API
Usage Examples
HeaderNames.Protocol
Alternative Designs
As this is a very tiny change, the only other reasonable possible designs are just to rename the variable or to place it in some other file. The proposed name,
Protocol
, seems to be the most consistent with the other values that are already defined and seems like all the pseudo-headers are already defined in thisHeaderNames.cs
file.Risks
I don't think there are any risks here besides maybe choosing a bad variable name and confusing the customers who try to use it.
The text was updated successfully, but these errors were encountered: