41 Commits

Author SHA1 Message Date
Simon Ser
b821d8c1ea webdav: introduce MoveOptions 2024-01-18 13:28:50 +01:00
Simon Ser
790ebfc5f8 webdav: rename MoveAll to Move 2024-01-18 13:28:50 +01:00
Simon Ser
4493704689 webdav: introduce CopyOptions 2024-01-18 13:28:50 +01:00
Simon Ser
75d3041b41 webdav: rename Client.Readdir to ReadDir
This is a more idiomatic name, and we've broken the API already
to add the ctx argument.
2024-01-08 14:35:56 +01:00
Simon Ser
751741d87e webdav: add/improve doc comments 2024-01-08 14:35:19 +01:00
Simon Ser
379a418130 Add context for clients 2023-12-19 21:29:37 +01:00
myml
e0764c06a3 fix: Response body was not closed causing the goroutine leak 2022-06-20 08:59:55 +02:00
Simon Ser
d7891ce50c internal: fix XML element struct naming
We were sometimes using TitleCase, sometimes Lowercase. Let's align
on the idiomatic Go naming and pick TitleCase everywhere.
2022-05-31 23:04:42 +02:00
Simon Ser
06ecb0e64c webdav: add TODO about fallback in Client.FindCurrentUserPrincipal 2022-05-25 15:07:20 +02:00
jumo98
6238e10e65 Include ModTime for directories if available 2021-08-11 11:08:03 +02:00
Simon Ser
ddf2a85958 Introduce HTTPClient, remove Client.SetBasicAuth 2020-02-19 16:02:49 +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
25678476db internal: add ETag 2020-02-03 21:48:31 +01:00
Simon Ser
fda38c8f93 webdav: add recursive arg to Client.Readdir 2020-01-22 12:06:36 +01:00
Simon Ser
f04c1c9421 webdav: add support for ETag to client & server 2020-01-22 12:03:58 +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
307a998a46 webdav: add Client.CopyAll 2020-01-22 10:16:48 +01:00
Simon Ser
489be203a1 webdav: add Client.MoveAll 2020-01-22 10:15:44 +01:00
Simon Ser
4cee748898 webdav: fix trailing getMod in client 2020-01-21 23:14:57 +01:00
Simon Ser
83272e2195 webdav: make FileInfo.ModTime optional in client 2020-01-21 22:47:48 +01:00
Simon Ser
82bdd23de4 webdav: populate FileInfo.MIMEType in client 2020-01-21 22:46:56 +01:00
Simon Ser
c673e7c7e7 webdav: replace os.FileInfo with our own type 2020-01-21 22:36:42 +01:00
Simon Ser
a5d750f1e1 webdav: add Client.Mkdir 2020-01-21 22:06:47 +01:00
Simon Ser
04bcea1ee8 webdav: add Client.RemoveAll 2020-01-21 21:48:07 +01:00
Simon Ser
41b68829e8 webdav: add DELETE support to server 2020-01-21 21:46:01 +01:00
Simon Ser
9db481fa51 webdav: add Client.Create 2020-01-21 21:32:43 +01:00
Simon Ser
0469c3d389 all: add basic docs 2020-01-21 21:01:18 +01:00
Simon Ser
6526cef9eb webdav: add Client.Readdir 2020-01-21 18:55:29 +01:00
Simon Ser
8e50764757 webdav: add basic Client.Open 2020-01-21 18:47:29 +01:00
Simon Ser
e84362bc0a webdav: add Client.Stat 2020-01-21 18:41:46 +01:00
Simon Ser
d21315e9fc Fix host trailing dot in Discover 2020-01-20 13:17:19 +01:00
Simon Ser
3a61646ab4 carddav: add current-user-principal to server 2020-01-20 10:56:25 +01:00
Simon Ser
cabf33219e Add Client.SetBasicAuth 2020-01-15 23:45:37 +01:00
Simon Ser
5fe39bbc13 internal: remove xml.Name arg from Response.DecodeProp
The xml.Name is now retrieved from the interface{} argument via
reflection.
2020-01-15 11:44:27 +01:00
Simon Ser
25ab0b2076 internal: add EncodeProp
This allows to simplify carddav.QueryAddressBook's request marshaling.
2020-01-15 11:17:38 +01:00
Simon Ser
3d05533a31 carddav: add very basic Client 2020-01-14 22:19:54 +01:00
Simon Ser
931602e55d internal: add Client.PropfindFlat 2020-01-14 21:43:09 +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
6f9ff62747 internal: add RawXMLValue.Decode 2020-01-14 18:53:29 +01:00
Simon Ser
3beb076950 webdav: add very basic Client 2020-01-14 18:51:17 +01:00