class Calligraphy::Propfind

Responsible for retrieving properties defined on the resource.

Public Instance Methods

execute() click to toggle source

Executes the WebDAV request for a particular resource.

# File lib/calligraphy/web_dav_request/propfind.rb, line 9
def execute
  xml = xml_for body: body, node: 'propfind'
  return :bad_request if xml == :bad_request

  properties = @resource.propfind xml

  builder = xml_builder
  xml_res = builder.propfind_response(@resource.full_request_path,
                                      properties)

  set_xml_content_type

  [:multi_status, xml_res]
end