all: encode hrefs, replace hrefs with path in public API

Closes: https://github.com/emersion/go-webdav/issues/14
Closes: https://github.com/emersion/go-webdav/issues/16
This commit is contained in:
Simon Ser
2020-01-22 11:07:30 +01:00
parent 72c96af206
commit 6eeeccb96e
11 changed files with 96 additions and 92 deletions

View File

@@ -8,7 +8,7 @@ import (
)
type AddressBook struct {
Href string
Path string
Name string
Description string
MaxResourceSize int64
@@ -19,11 +19,11 @@ type AddressBookQuery struct {
}
type AddressBookMultiGet struct {
Hrefs []string
Paths []string
Props []string
}
type AddressObject struct {
Href string
Path string
Card vcard.Card
}