Skip to content
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

Expose more ways to obtain information about requests #2005

Open
Mis1eader-dev opened this issue Apr 18, 2024 · 0 comments
Open

Expose more ways to obtain information about requests #2005

Mis1eader-dev opened this issue Apr 18, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Mis1eader-dev
Copy link
Member

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:

  1. Expose the protocol string.
  2. Add a local boolean member within requests called isWebSocket.
  3. Expose the already implemented method in HttpServer.cc.

Describe alternatives you've considered
Rewriting the current implementation.

@an-tao an-tao added the enhancement New feature or request label Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants