propfind method
Future<WebDavMultistatus>
propfind(
- PathUri path, {
- WebDavPropWithoutValues? prop,
- WebDavDepth? depth,
Retrieves 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_Request for the request sent by this method.
Implementation
Future<WebDavMultistatus> propfind(
PathUri path, {
WebDavPropWithoutValues? prop,
WebDavDepth? depth,
}) async {
final request = propfind_Request(
path,
prop: prop,
depth: depth,
);
final streamedResponse = await httpClient.send(request);
final response = await http.Response.fromStream(streamedResponse);
if (streamedResponse.statusCode != 207) {
throw DynamiteStatusCodeException(response);
}
return const WebDavResponseConverter().convert(response);
}