report_Request method

Request report_Request(
  1. PathUri path,
  2. WebDavOcFilterRules filterRules, {
  3. WebDavPropWithoutValues? prop,
})

Request to run the filter-files report with the filterRules on the resource at path.

See:

  • 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))
    ..encoding = utf8
    ..body = WebDavOcFilterFiles(
      filterRules: filterRules,
      prop: prop ?? const WebDavPropWithoutValues(), // coverage:ignore-line
    ).toXmlElement(namespaces: namespaces).toXmlString();

  _addBaseHeaders(request);
  return request;
}