Sha256: d3349413d5ab56b8b1fa305ecdfe48eb9aac486cccac39a0b65fdd40b1306cb7
Contents?: true
Size: 471 Bytes
Versions: 1
Compression:
Stored size: 471 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(Patch1.new(path, initheader), data) {|r| r.read_body dest, &block res = r } unless @newimpl res.value return res, res.body end res end class Patch1 < Get METHOD = "PATCH" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
restfulie-nosqlite-1.0.4 | lib/restfulie/client/ext/http_ext.rb |