Closed Exoth closed 10 years ago
You're right, I guess you would like to use it outside of Proxy class?
Yeah, I'd like to use it in some Rails controller action, where I in fact do the proxying, but need to do some complex things in the controller scope.
I understand. Feel free to send a PR! I'll merge it right away.
Ok, I'll do it today.
Here's the pull request: #31
extract_http_request_headers doesn't seem to rely on any of Proxy instance variables and it could be used outside of proxy just to get all the http headers. So may be it can be done as a public class method?