GoogleChromeLabs / simplehttp2server

A simple HTTP/2 server for development
Other
1.74k stars 98 forks source link

Proxy #10

Closed anandanand84 closed 8 years ago

anandanand84 commented 8 years ago

Is there a way to add a proxy, Say if I want to proxy /api to http://localhost:8421/api to access my apis how should I do that?

surma commented 8 years ago

Currently, that is not possible, no. This webserver is just for playing around for HTTP/2 locally, so I don’t think I will add that feature. This would probably be done with a reverse-proxy like nginx and in that scenario it would also have to be nginx that does the HTTP/2.