webdav: add support for ETag to client & server

This commit is contained in:
Simon Ser
2020-01-22 11:51:05 +01:00
parent 3268102d5a
commit f04c1c9421
5 changed files with 43 additions and 12 deletions

View File

@@ -339,6 +339,12 @@ type GetLastModified struct {
LastModified Time `xml:",chardata"`
}
// https://tools.ietf.org/html/rfc4918#section-15.6
type GetETag struct {
XMLName xml.Name `xml:"DAV: getetag"`
ETag string `xml:",chardata"`
}
// https://tools.ietf.org/html/rfc4918#section-14.5
type Error struct {
XMLName xml.Name `xml:"DAV: error"`