terry90 / rs-simple-proxy Goto Github PK
View Code? Open in Web Editor NEWSimple proxy written in Rust with middlewares. Can authenticate, log, route...
License: Apache License 2.0
Simple proxy written in Rust with middlewares. Can authenticate, log, route...
License: Apache License 2.0
Hey,
Just a drop by comment to let you know I really appreciate this repo!
It allowed me to quickly run a PoC with a proxy <3
I've edited the code a bit so State takes serde_json::Value and it supports async before_request and after_request hooks in middlewares, which is unfortunately a breaking change. https://github.com/o0Ignition0o/rs-simple-proxy/tree/igni/before_request_after_response_async is where the work happens, Happy to upstream it (or not, whatever works for you :) )
If I'm happy with the PoC I'll probably rewrite the underlying implementation so it's a bit more flexible and efficient, but I really like how easy rs-simple-proxy is to set up for a PoC!
TYSM!
(closing the issue :))
Hi, I'm new to Rust and trying to play with this proxy. I have installed various versions of simple-proxy with cargo, and they all fail to import the Cors, Health and Router middlewares, only Loggers works. Any idea why this might be?
unresolved imports `simple_proxy::middlewares::Cors`, `simple_proxy::middlewares::Health`, `simple_proxy::middlewares::Router`
no `Health` in `middlewares`
All of the examples I've seen for reading a hyper Body of the request or response are async. The methods in the middleware trait are not asynchronous. Is it possible to read the body contents in these methods?
If so can you provide an example of what this would look like?
Does this simple piece of code support proxy for youtube or netflix stream?
Please give an example file "routes.json"
Seems like my https is that requests are failing, only http is going through properly
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.