Method: PDNS::HTTP#patch

Defined in:
lib/pdns_api/http.rb

#patch(uri, body = nil) ⇒ Object

Does an HTTP PATCH request to uri. Returns the decoded response.



119
120
121
122
123
# File 'lib/pdns_api/http.rb', line 119

def patch(uri, body = nil)
  uri = uri(uri)
  net = Net::HTTP::Patch.new(uri, @headers)
  http(net, body)
end