Is your feature request related to a problem? Please describe.
In a reverse proxy application it is essential to know information about a request like its protocol (http, ws, etc.), or whether the request itself is a WebSocket.
Otherwise drogon::app().forward(...) can't make proper forwarding to the backend without rewriting what is already implemented in HttpServer.cc.
Describe the solution you'd like
Several options:
Expose the protocol string.
Add a local boolean member within requests called isWebSocket.
Expose the already implemented method in HttpServer.cc.
Describe alternatives you've considered
Rewriting the current implementation.
Is your feature request related to a problem? Please describe. In a reverse proxy application it is essential to know information about a request like its protocol (http, ws, etc.), or whether the request itself is a WebSocket.
Otherwise
drogon::app().forward(...)
can't make proper forwarding to the backend without rewriting what is already implemented in HttpServer.cc.Describe the solution you'd like Several options:
isWebSocket
.Describe alternatives you've considered Rewriting the current implementation.