where is Rack::Forwarder? #361

Closed
bhenderson opened this Issue Mar 10, 2012 · 8 comments

Projects

None yet

2 participants

@bhenderson

I found the docs here but I can't actually find rack/forward.rb anywhere. I've searched the git repo and my google-fu is failing me also.

thanks!

@bhenderson

... Sorry if his is the wrong place for this.

@raggi
Member
raggi commented Mar 17, 2012

https://gist.github.com/32376

Those docs are real old, I need to get the current ones up somewhere.

@raggi
Member
raggi commented Mar 17, 2012

TODO : fix docs. Will close after that's done.

@bhenderson

cool, thanks. so is it just something that isn't supported anymore?

@raggi
Member
raggi commented Mar 17, 2012

It's not, and likely never will be. Generic proxy implementation isn't that easy, and is better served for common use cases by the many proxy servers out there.

@bhenderson

that's cool, I was mostly curious. I'm also wondering though if it would be nice for Rack::Request to have some kind of to_req method. ie. turn it into an appropriate Net::HTTP request object. basically this logic: https://gist.github.com/32376#L25-L31

@raggi
Member
raggi commented Mar 19, 2012

Kinda, the problem is there's actually a lot more to getting a working proxy as a generic proxy. There are certain headers you want to strip, etc, etc.

Maybe I'll finish off my fork of that gist sometime, and clean it up. It's got some old fail in it.

@bhenderson

cool, thanks for your time.

@bhenderson bhenderson closed this Mar 19, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment