lib/kampainer/http_request.rb
# Create HTTP request with provided headers.
# Invoke request over HTTPS.
# Return response on success or log failure and throw error.
Create HTTP request with provided headers.
Invoke request over HTTPS.
Return response on success or log failure and throw error.
Create HTTP request with provided headers . Invoke request over HTTPS . Return response on success or log failure and throw error .
def send(action_name, data)
      headers.each { |k, v| request[k] = v }
      request.body = data
      response = log_request_response(data) do
        https(uri).request(request)
      end
      fail_unless_expected_response response, Net::HTTPSuccess
      response.body
    end
def send ( action_name , data ) headers . each { | k , v | request [ k ] = v } request . body = data response = log_request_response ( data ) do https ( uri ) . request ( request ) end fail_unless_expected_response response , Net :: HTTPSuccess response . body end
Create HTTP request with provided headers.
Create HTTP request with provided headers .
action_name
<not_specific>
data
<not_specific>