Sha256: fcc70e6a4869066a071669bc3e04cca4e3b7e92e6749c8384a0247b50d9bb97b
Contents?: true
Size: 671 Bytes
Versions: 26
Compression:
Stored size: 671 Bytes
Contents
module Net class HTTP # Sends a PATCH request to the +path+ and gets a response, # as an HTTPResponse object. 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 # # PATCH method --- RFC5789 # # See Net::HTTPGenericRequest for attributes and methods. class Patch < HTTPRequest METHOD = 'PATCH' REQUEST_HAS_BODY = true RESPONSE_HAS_BODY = true end end end
Version data entries
26 entries across 26 versions & 1 rubygems