Method: Gem::Net::HTTP#propfind
- Defined in:
- lib/rubygems/vendor/net-http/lib/net/http.rb
#propfind(path, body = nil, initheader = {'Depth' => '0'}) ⇒ Object
Sends a PROPFIND request to the server; returns an instance of a subclass of Gem::Net::HTTPResponse.
The request is based on the Gem::Net::HTTP::Propfind object created from string path
, string body
, and initial headers hash initheader
.
data = '{"userId": 1, "id": 1, "title": "delectus aut autem", "completed": false}'
http = Gem::Net::HTTP.new(hostname)
http.propfind('/todos/1', data)
2162 2163 2164 |
# File 'lib/rubygems/vendor/net-http/lib/net/http.rb', line 2162 def propfind(path, body = nil, initheader = {'Depth' => '0'}) request(Propfind.new(path, initheader), body) end |