report_Request method
Request
report_Request(
- PathUri path,
- WebDavOcFilterRules filterRules, {
- WebDavPropWithoutValues? prop,
Returns a request to run the filter-files report with the filterRules
on the resource at path
.
prop
specifies which props will be returned in the response.
See:
- https://docs.nextcloud.com/server/latest/developer_manual/client_apis/WebDAV/basic.html#listing-favorites for more information.
- report for a complete operation executing this request.
Implementation
http.Request report_Request(
PathUri path,
WebDavOcFilterRules filterRules, {
WebDavPropWithoutValues? prop,
}) {
final request = http.Request('REPORT', _constructUri(path))
..body = WebDavOcFilterFiles(
filterRules: filterRules,
prop: prop ?? const WebDavPropWithoutValues(), // coverage:ignore-line
).toXmlElement(namespaces: namespaces).toXmlString();
_addBaseHeaders(request);
return request;
}