report_sync
Description:
Issues REPORT request on the provided uri
, or, in case it's null
, on the URI defined in associated
Source.
On success, calls func
for each returned DAV:propstat.
The report can result in a multistatus response, but also to raw data. In case the func
is provided and the result is a
multistatus response, then it is traversed using this func
.
The optional out_content_type
can be used to get content type of the response. Free it with
g_free, when no longer needed.
The optional out_content
can be used to get actual result content. Free it with g_byte_array_free
, when no longer
needed.
Parameters:
this | |
uri |
URI to issue the request for, or |
depth |
requested depth, can be |
xml |
the request itself, as an XmlDocument |
func |
an WebDAVPropstatTraverseFunc function to call for
each DAV:propstat in the multistatus response, or |
out_content_type |
return location for response Content-Type, or |
out_content |
return location for response content, or |
cancellable |
optional Cancellable object, or |
func_user_data |
user data passed to |
Returns:
Whether succeeded. |