propfind_Request method
Returns a request to retrieve the prop
for the resource at path
.
depth
can be used to limit scope of the returned resources.
See:
- http://www.webdav.org/specs/rfc2518.html#METHOD_PROPFIND for more information.
- 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))
..body = WebDavPropfind(prop: prop ?? const WebDavPropWithoutValues())
.toXmlElement(namespaces: namespaces)
.toXmlString();
if (depth != null) {
request.headers['Depth'] = depth.value;
}
_addBaseHeaders(request);
return request;
}