lib/htty/http_patch.rb
# Represents a HTTP PATCH request. This class exists because Net::HTTP did
# not have this behavior in Ruby v1.9.2 and earlier.
Represents a HTTP PATCH request. This class exists because Net::HTTP did
not have this behavior in Ruby v1.9.2 and earlier.
Represents a HTTP PATCH request . This class exists because Net :: HTTP did not have this behavior in Ruby v1 . 9 . 2 and earlier .
def patch(path, data, initheader, &block)
      res = nil
      request(Patch.new(path, initheader), data) do |r|
        r.read_body(nil, &block)
        res = r
      end
      unless @newimpl
        res.value
        return res, res.body
      end
      res
    end
def patch ( path , data , initheader , & block ) res = nil request ( Patch . new ( path , initheader ) , data ) do | r | r . read_body ( nil , & block ) res = r end unless @newimpl res . value return res , res . body end res end
Represents a HTTP PATCH request.
Represents a HTTP PATCH request .
path
data
initheader
block