Commit Graph

29 Commits

Author SHA1 Message Date
Simon Ser
bf666bb2fb
Ensure resourcetype is always defined 2020-01-17 17:09:44 +01:00
Simon Ser
34b2ebf940
all: use variables for xml.Name values 2020-01-17 17:09:23 +01:00
Simon Ser
883dafaf41
internal: fix Error element definition 2020-01-17 14:47:10 +01:00
Simon Ser
7cb302246b
internal: add NewPropfindResponse helper 2020-01-17 14:40:29 +01:00
Simon Ser
e2da5769f5
Improve OPTIONS handling 2020-01-17 11:41:44 +01:00
Simon Ser
326c4b9b6f
internal: add Handler 2020-01-17 11:30:42 +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
4c4624e225
webdav: add support for allprop and propname in PROPFIND 2020-01-15 23:03:09 +01:00
Simon Ser
ae0541654a
inetrnal: rename Date to Time, make it a Text{Marshaler,Unmarshaler} 2020-01-15 19:32:59 +01:00
Simon Ser
3d37e49ca0
internal: make Status a Text{Marshaler,Unmarshaler} 2020-01-15 19:23:09 +01:00
Simon Ser
040c38f1b6
webdav: add support for more props 2020-01-15 19:08:38 +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
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
ee5864490e
internal: make sure rawXMLValueReader is an xml.TokenReader 2020-01-15 11:16:30 +01:00
Simon Ser
44f7f84ef5
internal: add EncodeRawXMLElement 2020-01-15 11:14:34 +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
a4580254eb
internal: check response status in Response.DecodeProp 2020-01-14 21:35:24 +01:00
Simon Ser
388377dfca
internal: remove unnecessary namespaces in structs 2020-01-14 21:32:43 +01:00
Simon Ser
5748fec4d0
internal: add helpers to parse multistatus 2020-01-14 21:29:54 +01:00
Simon Ser
93f95c7fd2
internal: add <responsedescription> 2020-01-14 20:27:08 +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
Simon Ser
055a297f6e
internal: add RawXMLValue to defer XML encoding/decoding 2020-01-14 17:54:03 +01:00