Replies: 1 comment
-
You probably want to take a look at how the proxy helpers work. mojo/lib/Mojolicious/Plugin/DefaultHelpers.pm Line 212 in 03d1b64 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to run a small filtering proxy on a VPS with low resources. Something like 5 GB of disk space and 512 MB of RAM in total. But I need to process multiple client transfers of about 50GB in one connection. The client makes a GET request to the server, the server sends a request to an external resource and responds to the client.
On entry, it must filter client request headers, and on exit, it must filter server response headers and keep the payload body unchanged.
After filtering the headers, it should degrade to something as simple as:
It should not save the body in memory, or in temporary files (because resources - there is no memory or disk space for it).
It probably needs to dive deeper into the internals of Mojolicious...
Beta Was this translation helpful? Give feedback.
All reactions