internal: add <responsedescription>

This commit is contained in:
Simon Ser 2020-01-14 20:27:08 +01:00
parent 87a88d6723
commit 93f95c7fd2
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48

View File

@ -6,26 +6,28 @@ import (
// https://tools.ietf.org/html/rfc4918#section-14.16
type multistatus struct {
XMLName xml.Name `xml:"DAV: multistatus"`
Responses []Response `xml:"DAV: response"`
// TODO: responsedescription?
XMLName xml.Name `xml:"DAV: multistatus"`
Responses []Response `xml:"DAV: response"`
ResponseDescription string `xml:"DAV: responsedescription,omitempty"`
}
// https://tools.ietf.org/html/rfc4918#section-14.24
type Response struct {
XMLName xml.Name `xml:"DAV: response"`
Href string `xml:"DAV: href"`
Propstats []Propstat `xml:"DAV: propstat"`
XMLName xml.Name `xml:"DAV: response"`
Href string `xml:"DAV: href"`
Propstats []Propstat `xml:"DAV: propstat"`
ResponseDescription string `xml:"DAV: responsedescription,omitempty"`
// TODO: (href*, status)
// TODO: error?, responsedescription? , location?
// TODO: error?, location?
}
// https://tools.ietf.org/html/rfc4918#section-14.22
type Propstat struct {
XMLName xml.Name `xml:"DAV: propstat"`
Prop RawXMLValue `xml:"DAV: prop"`
Status string `xml:"DAV: status"`
// TODO: error?, responsedescription?
XMLName xml.Name `xml:"DAV: propstat"`
Prop RawXMLValue `xml:"DAV: prop"`
Status string `xml:"DAV: status"`
ResponseDescription string `xml:"DAV: responsedescription,omitempty"`
// TODO: error?
}
// https://tools.ietf.org/html/rfc4918#section-14.20