Code Monkey home page Code Monkey logo

rs-simple-proxy's People

Contributors

6w3 avatar terry90 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

rs-simple-proxy's Issues

Appreciation post ❤️

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 :))

Unable to import Cors, Health, and Router middleware

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`

Middleware example of reading request/response body

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.