class Net::HTTP
Public Instance Methods
patch(path, data, initheader = nil, dest = nil) { |body_segment| ... }
click to toggle source
Sends a PATCH request to the path and gets a response, as an HTTPResponse object.
# File lib/api-client/net/http.rb, line 5 def patch(path, data, initheader = nil, dest = nil, &block) # :yield: +body_segment+ res = nil request(Patch.new(path, initheader), data) {|r| r.read_body dest, &block res = r } unless @newimpl res.value return res, res.body end res end