Class: Opentsdb::HttpClient
- Inherits:
-
Object
- Object
- Opentsdb::HttpClient
- Defined in:
- lib/opentsdb/http_client.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#post(uri, body) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/opentsdb/http_client.rb', line 6 def post(uri, body) send_http(uri) do |http| Opentsdb.logger.debug "Http post body: #{body}" req = Net::HTTP::Post.new(uri, headers) req.body = body http.request(req) end end |