Commit Graph

32 Commits

Author SHA1 Message Date
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