Path rewriting utility function #462
Labels
enhancement
New feature or request
ergonomics
Ease of use, developer friendliness
help wanted
Extra attention is needed
What is the problem your feature solves, or the need it fulfills?
I am using pingora to proxy to other locally hosted web applications. These applications are hosted at a random port on localhost.
In order to forward the request to the appropriately the path needs to be rewritten.
Describe the solution you'd like
It would be nice if there was a method, associated function, function, etc, that simplified the process of path rewriting. For example when using caddy, the path is rewritten automagically. I suspect a method in pingora would ensure that rewriting is done correctly whereas I wouldn't put it past myself to do it incorrectly.
Describe alternatives you've considered
The following is the approach I am taking:
Additional context
It would be really great if pingora handled these headers in an automatic way so that some of the simplicity of other reverse proxies—e.g. caddy—could be found in pingora. That would give us (less web savvy users) an easier time focusing on the other fun stuff that pingora enables
The text was updated successfully, but these errors were encountered: