class Thrift::HTTPClientTransport
Public Instance Methods
flush()
click to toggle source
# File lib/rbhive/t_c_l_i_connection.rb 18 def flush 19 http = Net::HTTP.new @url.host, @url.port 20 http.use_ssl = @url.scheme == 'https' 21 http.read_timeout = nil 22 http.verify_mode = @ssl_verify_mode if @url.scheme == 'https' 23 resp = http.post(@url.request_uri, @outbuf, @headers) 24 data = resp.body 25 data = Bytes.force_binary_encoding(data) 26 @inbuf = StringIO.new data 27 @outbuf = Bytes.empty_byte_buffer 28 end