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
How does one define paths for echo server ? Thanks #86
Comments
What do you mean by 'paths'? Can you provide more detail on what you want to accomplish? |
for example /user or /post to a certain handler |
Looks like you mean a HTTP handler. Wangle only provides the foundation for building servers/clients. Facebook's proxygen HTTP library, which builds on wangle and folly, is likely what you're looking for. There are some examples here - the echo server is the simplest: https://github.com/facebook/proxygen/tree/master/proxygen/httpserver/samples |
@anirudhvr Thank you for the reference , there are however no paths example |
The echo example uses a very simple request handler that doesn't do much. You can take a look at RequestHandler internals and implemet your own that does different things based on paths. Here's an example of how to get a path from a request, though this specific example concentrates on HTTP2's push feature |
great, so i just adapt |
Yes, pretty much, you can do this in the EchoHandler as well. The proxygen project has a mailing list as well where the devs are active if you have more questions on this. |
No description provided.
The text was updated successfully, but these errors were encountered: