Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

where is Rack::Forwarder? #361

Closed
bhenderson opened this Issue · 8 comments

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
Owner

https://gist.github.com/32376

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

@raggi
Owner

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

@bhenderson

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

@raggi
Owner

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
Owner

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.