Skip to content
instance method

Net::HTTP#propfind

(::String path, ?untyped? body, ?::Net::headers initheader) -> ::Net::HTTPResponse
propfind(path, body = nil, initheader = {'Depth' => '0'})

Sends a PROPFIND request to the server; returns an instance of a subclass of Net::HTTPResponse.

The request is based on the Net::HTTP::Propfind object created from string path, string body, and initial headers hash initheader.

Example
data = '{"userId": 1, "id": 1, "title": "delectus aut autem", "completed": false}'
http = Net::HTTP.new(hostname)
http.propfind('/todos/1', data)
See also #post #proppatch #peer_cert #proxy? also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0