Commit Graph

23 Commits

Author SHA1 Message Date
Simon Ser
a81a7014c6
internal: remove outdated TODO 2020-02-12 20:06:06 +01:00
Simon Ser
7d0d522fa7
internal: prevent empty endpoint path from resulting in "." sub-paths 2020-02-12 20:04:31 +01:00
Simon Ser
30eac28d2b
internal: read response body on error 2020-02-12 19:46:05 +01:00
Simon Ser
a892cc58df
internal: only handle relative paths in Client.ResolveHref
Don't prepend the endpoint path in front of absolute paths.
2020-02-12 17:13:12 +01:00
Simon Ser
7f285fdf83
internal: fix Client.PropfindFlat when endpoint has a non-empty path 2020-02-12 16:40:30 +01:00
Simon Ser
9afa59dc22
internal: fix trailing slash getting removed in Client.ResolveHref 2020-02-12 16:40:03 +01:00
Simon Ser
57df6bf316
caldav: add filter XML definition 2020-02-05 17:07:35 +01:00
Simon Ser
f9d728aaeb
carddav: add Client.HasSupport 2020-02-05 16:08:15 +01:00
Simon Ser
6de76c94b8
internal: check for HTTP errors in Client.Do
Closes: https://github.com/emersion/go-webdav/issues/19
2020-01-22 13:22:45 +01:00
Simon Ser
6eeeccb96e
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
2020-01-22 11:07:30 +01:00
Simon Ser
489be203a1
webdav: add Client.MoveAll 2020-01-22 10:15:44 +01:00
Simon Ser
c0a91b0085
internal: move Depth to internal.go 2020-01-22 10:06:00 +01:00
Simon Ser
3e41eefd12
internal: properly encode path in Client.NewRequest 2020-01-20 13:40:26 +01:00
Simon Ser
3beeb23f7c
internal: drop unused field in Client 2020-01-16 18:08:26 +01:00
Simon Ser
cabf33219e
Add Client.SetBasicAuth 2020-01-15 23:45:37 +01:00
Simon Ser
ae93da82c1
webdav: add minimal server implementation 2020-01-15 18:21:27 +01:00
Simon Ser
42765234a8
internal: add Depth, Client.Propfind 2020-01-15 12:30:42 +01:00
Simon Ser
9dfabd89c8
carddav: add Client.FindAddressBooks 2020-01-14 23:13:23 +01:00
Simon Ser
931602e55d
internal: add Client.PropfindFlat 2020-01-14 21:43:09 +01:00
Simon Ser
94d597c1f5
internal: remove unnecessary call to Encoder.Flush 2020-01-14 21:38:25 +01:00
Simon Ser
5748fec4d0
internal: add helpers to parse multistatus 2020-01-14 21:29:54 +01:00
Simon Ser
87a88d6723
Generate PROPFIND request body
Instead of a hardcoded string, generate it with encoding/xml.
2020-01-14 20:00:54 +01:00
Simon Ser
3beb076950
webdav: add very basic Client 2020-01-14 18:51:17 +01:00