proppatch_Request method
Request to update the props of the resource at path
.
See:
- proppatch for a complete operation executing this request.
Implementation
http.BaseRequest proppatch_Request(
PathUri path, {
WebDavProp? set,
WebDavPropWithoutValues? remove,
}) {
final request = http.Request('PROPPATCH', _constructUri(path))
..encoding = utf8
..body = WebDavPropertyupdate(
set: set != null ? WebDavSet(prop: set) : null,
remove: remove != null ? WebDavRemove(prop: remove) : null,
).toXmlElement(namespaces: namespaces).toXmlString();
_addBaseHeaders(request);
return request;
}