mkcol_Request method
Returns a request to create 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 for a complete operation executing this request.
Implementation
http.Request mkcol_Request(
PathUri path, {
WebDavProp? set,
}) {
final request = http.Request('MKCOL', _constructUri(path));
if (set != null) {
request.body = WebDavMkcol(
set: WebDavSet(prop: set),
).toXmlElement(namespaces: namespaces).toXmlString();
}
_addBaseHeaders(request);
return request;
}