Module: Postmark::HttpClient

Defined in:
lib/postmark/http_client.rb

Class Method Summary (collapse)

Class Method Details

+ (Object) get(path, query = {})



14
15
16
# File 'lib/postmark/http_client.rb', line 14

def get(path, query = {})
  handle_response(http.get(url_path(path + to_query_string(query)), headers))
end

+ (Object) post(path, data = ''))



6
7
8
# File 'lib/postmark/http_client.rb', line 6

def post(path, data = '')
  handle_response(http.post(url_path(path), data, headers))
end

+ (Object) put(path, data = ''))



10
11
12
# File 'lib/postmark/http_client.rb', line 10

def put(path, data = '')
  handle_response(http.put(url_path(path), data, headers))
end