proppatch_Request method
Returns a request to update the props of the resource at path
.
The props in set
will be added/updated.
The props in remove
will be removed.
See:
- http://www.webdav.org/specs/rfc2518.html#METHOD_PROPPATCH for more information.
- proppatch for a complete operation executing this request.
Implementation
http.Request proppatch_Request(
PathUri path, {
WebDavProp? set,
WebDavPropWithoutValues? remove,
}) {
final request = http.Request('PROPPATCH', _constructUri(path))
..body = WebDavPropertyupdate(
set: set != null ? WebDavSet(prop: set) : null,
remove: remove != null ? WebDavRemove(prop: remove) : null,
).toXmlElement(namespaces: namespaces).toXmlString();
_addBaseHeaders(request);
return request;
}