Class | Hookout::ReverseHttpRequest |
In: |
lib/hookout/reversehttp_connector.rb
|
Parent: | Object |
body | [R] | |
server_address | [R] |
# File lib/hookout/reversehttp_connector.rb, line 142 def initialize(reply_url, server_address, body) @reply_url = reply_url @server_address = server_address @body = body @response_buffer = StringIO.new @closed = false end
# File lib/hookout/reversehttp_connector.rb, line 165 def close if not @closed @response_buffer.flush resp_body = @response_buffer.string Hookout::Utils.post_data @reply_url, resp_body @closed = true end end