Misc #6299 » 0002-Streamline-implementation-with-1.9.3.patch
| lib/net/http.rb | ||
|---|---|---|
|
res
|
||
|
end
|
||
|
# Sends a PATCH request to the +path+ and gets a response,
|
||
|
# as an HTTPResponse object.
|
||
|
def patch(path, body, initheader = nil)
|
||
|
request(Patch.new(path, initheader), body)
|
||
|
def patch(path, data, initheader = nil, dest = nil, &block) #:nodoc:
|
||
|
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
|
||
|
# Sends a PROPPATCH request to the +path+ and gets a response,
|
||
- « Previous
- 1
- 2
- Next »