mirror of
https://github.com/1f349/go-webdav.git
synced 2024-12-22 16:24:14 +00:00
internal: add <responsedescription>
This commit is contained in:
parent
87a88d6723
commit
93f95c7fd2
@ -8,7 +8,7 @@ import (
|
|||||||
type multistatus struct {
|
type multistatus struct {
|
||||||
XMLName xml.Name `xml:"DAV: multistatus"`
|
XMLName xml.Name `xml:"DAV: multistatus"`
|
||||||
Responses []Response `xml:"DAV: response"`
|
Responses []Response `xml:"DAV: response"`
|
||||||
// TODO: responsedescription?
|
ResponseDescription string `xml:"DAV: responsedescription,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://tools.ietf.org/html/rfc4918#section-14.24
|
// https://tools.ietf.org/html/rfc4918#section-14.24
|
||||||
@ -16,8 +16,9 @@ type Response struct {
|
|||||||
XMLName xml.Name `xml:"DAV: response"`
|
XMLName xml.Name `xml:"DAV: response"`
|
||||||
Href string `xml:"DAV: href"`
|
Href string `xml:"DAV: href"`
|
||||||
Propstats []Propstat `xml:"DAV: propstat"`
|
Propstats []Propstat `xml:"DAV: propstat"`
|
||||||
|
ResponseDescription string `xml:"DAV: responsedescription,omitempty"`
|
||||||
// TODO: (href*, status)
|
// TODO: (href*, status)
|
||||||
// TODO: error?, responsedescription? , location?
|
// TODO: error?, location?
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://tools.ietf.org/html/rfc4918#section-14.22
|
// https://tools.ietf.org/html/rfc4918#section-14.22
|
||||||
@ -25,7 +26,8 @@ type Propstat struct {
|
|||||||
XMLName xml.Name `xml:"DAV: propstat"`
|
XMLName xml.Name `xml:"DAV: propstat"`
|
||||||
Prop RawXMLValue `xml:"DAV: prop"`
|
Prop RawXMLValue `xml:"DAV: prop"`
|
||||||
Status string `xml:"DAV: status"`
|
Status string `xml:"DAV: status"`
|
||||||
// TODO: error?, responsedescription?
|
ResponseDescription string `xml:"DAV: responsedescription,omitempty"`
|
||||||
|
// TODO: error?
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://tools.ietf.org/html/rfc4918#section-14.20
|
// https://tools.ietf.org/html/rfc4918#section-14.20
|
||||||
|
Loading…
Reference in New Issue
Block a user