mkcol method
Creates a collection at path
.
The props in set
will be added.
See:
- http://www.webdav.org/specs/rfc2518.html#METHOD_MKCOL and http://www.webdav.org/specs/rfc5689.html for more information.
- mkcol_Request for the request sent by this method.
Implementation
Future<http.StreamedResponse> mkcol(
PathUri path, {
WebDavProp? set,
}) async {
final request = mkcol_Request(
path,
set: set,
);
final streamedResponse = await httpClient.send(request);
if (streamedResponse.statusCode != 201) {
final response = await http.Response.fromStream(streamedResponse);
throw DynamiteStatusCodeException(response);
}
return streamedResponse;
}