This crate provides an endpoint for the poem web framework that serves files and requests from another server.
While this project is in work, I will be following this development roadmap. In the end, poem-proxy will be a versatile service that is ready for your next web application.
As you can see, this proxy service is not yet fully functional. The items checked off have been tested and do work to some limited capacity. I have successfully used this proxy to bridge my Poem webserver to a Sveltekit webserver, though advanced functionality is still not there.
Documentation is not yet finished, but can be found here. Just remember that it's a work-in-progress. Parhesia is nowhere near completion, but you can check out that repository to see how this proxy endpoint is currently being used.
The main purpose of this is to enable rust backends to forward requests to other servers, such as a NodeJS server. For example, if you are developing an app with sveltekit, you miss out on a lot of its advantages if you serve it as a static site using the StaticFilesEndpoint. For one thing, you won't see automatic updates from HMR.
Even if you eventually want to use the StaticFilesEndpoint, this can be useful for app development before moving over to the static generation.
This code is licensed under the MIT License. If you make improvements, please consider contributing them back to main. You are completely free to use this code and this library for any purpose.