Method: Origen::Client#post
- Defined in:
- lib/origen/client.rb
#post(path, options = {}) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/origen/client.rb', line 14 def post(path, = {}) [:port] = port invocation_url = URI.parse("#{url}/#{path}") http = Net::HTTP.new(invocation_url.host, invocation_url.port) http.post(invocation_url, JSON.dump([:body]), 'Content-type' => 'application/vnd.api+json', 'Accept' => 'text/json, application/vnd.api+json') end |