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

Version Path
api-client-3.1.0 lib/api-client/net/http.rb
api-client-3.0.0 lib/api-client/net/http.rb
api-client-2.7.0 lib/api-client/net/http.rb
api-client-2.6.0 lib/api-client/net/http.rb
api-client-2.5.0 lib/api-client/net/http.rb
api-client-2.5.0.rc1 lib/api-client/net/http.rb
api-client-2.4.0 lib/api-client/net/http.rb
api-client-2.3.0 lib/api-client/net/http.rb
api-client-2.2.0 lib/api-client/net/http.rb
api-client-2.1.0 lib/api-client/net/http.rb
api-client-2.0.3 lib/api-client/net/http.rb
api-client-2.0.2 lib/api-client/net/http.rb
api-client-2.0.1 lib/api-client/net/http.rb
api-client-2.0.0 lib/api-client/net/http.rb
api-client-2.0.0.rc2 lib/api-client/net/http.rb
api-client-2.0.0.rc1 lib/api-client/net/http.rb
api-client-1.10.0 lib/api-client/net/http.rb
api-client-1.9.1 lib/api-client/net/http.rb
api-client-1.9.0 lib/api-client/net/http.rb
api-client-1.8.2 lib/api-client/net/http.rb