-
Enhancement
-
Resolution: Done
-
Major
-
None
-
None
-
None
The Http2ServerConnection has a reference to the Http2StreamSourceChannel which has a reference to the HTTP/2 stream identifier. There is currently no way to get this identifier from the HttpServerExchange. If we expose it through the Http2ServerConnection, we could get the stream identifier from there.
Example
if (exchange.getConnection() instanceof Http2ServerConnection connection) { return connection.getStreamId(); }