blakesmith / flamethrower

Flamethrower gives you the power to use your awesome irc client to talk in your campfire rooms
MIT License
39 stars 2 forks source link

Proxy Support #21

Closed alistar79 closed 11 years ago

alistar79 commented 11 years ago

Is there any HTTP proxy support in this or is there any planned?

alistar79 commented 11 years ago

I'm going to look at adding to:
def campfire_get(path, args = {}) action_log("get", path, nil) full_path = host << path http = EventMachine::HttpRequest.new(full_path).get( :head => {'authorization' => [@token, 'x']}, :query => args) http.errback { on_connection_error("get", path) } http end

Should be pretty simple to grab the vars and split them into the right parts to be passed to em-http as the proxy object.

Would you be interested in pulling this should I send a pull request?