Module: Progstr::HttpClient

Defined in:
lib/progstr/httpclient.rb

Constant Summary collapse

HEADERS =
{
  'Content-type' => 'application/json',
  'Accept'       => 'application/json'
}

Class Method Summary collapse

Class Method Details

.post(path, data = '') ⇒ Object



9
10
11
# File 'lib/progstr/httpclient.rb', line 9

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