Sha256: 9abf1fc7456e5ae04c08bfb5bd0a8056573ddb3ff6b44dddb0380a86894320fa
Contents?: true
Size: 657 Bytes
Versions: 2
Compression:
Stored size: 657 Bytes
Contents
module Net class HTTP if not method_defined? :patch # 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 end if not const_defined? :Patch class Patch < HTTPRequest METHOD = 'PATCH' REQUEST_HAS_BODY = true RESPONSE_HAS_BODY = true end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
restfulie-1.1.1 | lib/restfulie/client/ext/http_ext.rb |
restfulie-1.1.0 | lib/restfulie/client/ext/http_ext.rb |