internal: add PROPPATCH support to server
This commit is contained in:
@@ -335,3 +335,22 @@ type CurrentUserPrincipal struct {
|
||||
Href string `xml:"href,omitempty"`
|
||||
Unauthenticated *struct{} `xml:"unauthenticated,omitempty"`
|
||||
}
|
||||
|
||||
// https://tools.ietf.org/html/rfc4918#section-14.19
|
||||
type Propertyupdate struct {
|
||||
XMLName xml.Name `xml:"DAV: propertyupdate"`
|
||||
Remove []Remove `xml:"remove"`
|
||||
Set []Set `xml:"set"`
|
||||
}
|
||||
|
||||
// https://tools.ietf.org/html/rfc4918#section-14.23
|
||||
type Remove struct {
|
||||
XMLName xml.Name `xml:"DAV: remove"`
|
||||
Prop Prop `xml:"prop"`
|
||||
}
|
||||
|
||||
// https://tools.ietf.org/html/rfc4918#section-14.26
|
||||
type Set struct {
|
||||
XMLName xml.Name `xml:"DAV: set"`
|
||||
Prop Prop `xml:"prop"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user