tailrecursion / ring-proxy

HTTP proxy ring middleware for Clojure web applications.
47 stars 14 forks source link

A function for single request forwarding #10

Open timur-han opened 10 years ago

timur-han commented 10 years ago

A new function for forwarding single requests.

AeroNotix commented 10 years ago

The code as-is looks good.

However, the code just exists in a vacuum. Could you describe what you're using it for?

alandipert commented 10 years ago

It looks nearly identical to the body of wrap-proxy - perhaps we could replace the guts of a wrap-proxy, which is already kinda big, with a call to this function?

timur-han commented 10 years ago

To forward selective requests.

For instance only to forward a request on certain a path and under a certain condition.

On Thu, Oct 16, 2014 at 3:21 PM, Aaron France notifications@github.com wrote:

The code as-is looks good.

However, the code just exists in a vacuum. Could you describe what you're using it for?

— Reply to this email directly or view it on GitHub https://github.com/tailrecursion/ring-proxy/pull/10#issuecomment-59359547 .

AeroNotix commented 10 years ago

@timur87 As @alandipert could you refactor it so that it shares implementation with wrap-proxy?