propfind_Request method
Request to retrieve the props for the resource at path
.
See:
- propfind for a complete operation executing this request.
Implementation
http.Request propfind_Request(
PathUri path, {
WebDavPropWithoutValues? prop,
WebDavDepth? depth,
}) {
final request = http.Request('PROPFIND', _constructUri(path))
..encoding = utf8
..body = WebDavPropfind(prop: prop ?? const WebDavPropWithoutValues())
.toXmlElement(namespaces: namespaces)
.toXmlString();
if (depth != null) {
request.headers['Depth'] = depth.value;
}
_addBaseHeaders(request);
return request;
}