rust-rpxy
rust-rpxy copied to clipboard
How to set the customized header for response?
In caddy, for example, we can add some headers to response
example.com {
header {
Cache-Control "no-cache, no-store, must-revalidate"
}
}
I didn't find a way to configure the header in rpxy. Moreover, how do I enable gzip for an application?
rpxy doesn't provide such functionality at this point.
In the current rpxy's design principle (as simple as possible), application-specific header fields including gzip for e2e compression should be controlled by backend applications. rpxy focuses not on the duty of web servers but on tasks of reverse proxy, e.g., TLS termination, routing requests to backend apps, etc.
rpxydoesn't provide such functionality at this point.In the current
rpxy's design principle (as simple as possible), application-specific header fields includinggzipfor e2e compression should be controlled by backend applications.rpxyfocuses not on the duty of web servers but on tasks of reverse proxy, e.g., TLS termination, routing requests to backend apps, etc.
AFAIK, nginx and caddy both support these functionalities. Does rpxy plan to support these functionalities the other alternatives has supported?
AFAIK, nginx and caddy both support these functionalities. Does rpxy plan to support these functionalities the other alternatives has supported?
If I need or get convinced, I (or other contributors) will do that.
rpxydoesn't provide such functionality at this point. In the currentrpxy's design principle (as simple as possible), application-specific header fields includinggzipfor e2e compression should be controlled by backend applications.rpxyfocuses not on the duty of web servers but on tasks of reverse proxy, e.g., TLS termination, routing requests to backend apps, etc.AFAIK,
nginxandcaddyboth support these functionalities. Doesrpxyplan to support these functionalities the other alternatives has supported?
nginx and caddy are both webserver and not primarily reverse-proxies, thus I see this oos for rpxy.