Why netty uses different APIs for h2 and http? #12613
Unanswered
FurmigaHumana
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
While upgrading my webserver to support both http/1 and http/2 I noticed I cannot use the same code to handle them all, I did expected differences but not to the point of HttpHeaders and Http2Headers not being compatible and needing separate handlers to get a value from them.
I am wondering why it was designed this way? Should go to the trouble of writing specific code for both version or the overhead of the translation (Http2StreamFrameToHttpObjectCodec) is negligible enough?
Beta Was this translation helpful? Give feedback.
All reactions