Sha256: 1e2bd3ca6ebdee9ca8f84fe72c1c3be431210dccda23ce035e35b25c46d1db19
Contents?: true
Size: 469 Bytes
Versions: 10
Compression:
Stored size: 469 Bytes
Contents
module Net class HTTP # Definition of a patch method in the same way that post works 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 class Patch < Get METHOD = "PATCH" end end end
Version data entries
10 entries across 10 versions & 2 rubygems