report_sync


Description:

public bool report_sync (string? uri, string? depth, XmlDocument xml, WebDAVPropstatTraverseFunc? func, owned string? out_content_type, owned ByteArray? out_content, Cancellable? cancellable = null) throws Error

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

an WebDAVSession

uri

URI to issue the request for, or null to read from Source

depth

requested depth, can be null, then no Depth header is sent

xml

the request itself, as an XmlDocument

func

an WebDAVPropstatTraverseFunc function to call for each DAV:propstat in the multistatus response, or null

out_content_type

return location for response Content-Type, or null

out_content

return location for response content, or null

cancellable

optional Cancellable object, or null

func_user_data

user data passed to func

Returns:

Whether succeeded.