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

Version Path
restfulie-nosqlite-1.0.3 lib/restfulie/client/ext/http_ext.rb
restfulie-1.0.3 lib/restfulie/client/ext/http_ext.rb
restfulie-1.0.0 lib/restfulie/client/ext/http_ext.rb
restfulie-1.0.0.beta5 lib/restfulie/client/ext/http_ext.rb
restfulie-1.0.0.beta4 lib/restfulie/client/ext/http_ext.rb
restfulie-1.0.0.beta1 lib/restfulie/client/ext/http_ext.rb
restfulie-0.1.0.beta1 lib/restfulie/client/ext/http_ext.rb
restfulie-0.9.3 lib/restfulie/client/ext/http_ext.rb
restfulie-0.9.1 lib/restfulie/client/ext/http_ext.rb
restfulie-0.8.1 lib/restfulie/client/ext/http_ext.rb