Method: BooticClient::Client#post
- Defined in:
- lib/bootic_client/client.rb
#post(href, payload = {}, headers = {}) ⇒ Object
35 36 37 38 39 40 |
# File 'lib/bootic_client/client.rb', line 35 def post(href, payload = {}, headers = {}) validated_request!(:post, href) do |req| req.headers.update headers req.body = JSON.dump(sanitized(payload)) end end |