# File lib/gemnasium/gitlab_service/connection.rb, line 24 def post(path, body, headers = {}) request = Net::HTTP::Post.new(@base_url + path, headers.merge('Accept' => 'application/json', 'Content-Type' => 'application/json', 'User-Agent' => DEFAULT_AGENT)) request.basic_auth('X', @api_key) request.body = body @connection.request(request) end