Henry Stern 4ce863ae71 caldav, carddav: support If-Match/If-None-Match on client PUT
PutCalendarObject and PutAddressObject sent no conditional request
headers, so a client could not perform an optimistic-concurrency write
(overwrite only if the resource still carries an expected ETag). Add an
options parameter to both, reusing the existing server-side
PutCalendarObjectOptions / PutAddressObjectOptions types so the client
and Backend interface mirror each other. A nil opts preserves the prior
unconditional behaviour; a non-nil opts sets If-Match / If-None-Match.

Signed-off-by: Henry Stern <henry@stern.ca>
Assisted-by: Claude Opus 4.8 <noreply@anthropic.com>
Closes: https://github.com/emersion/go-webdav/issues/130
2026-11-12 17:55:00 +01:00
2017-08-26 14:46:44 +02:00
2025-12-18 14:34:29 +01:00
2025-12-18 14:34:29 +01:00
2020-01-14 17:51:33 +01:00
2024-07-13 15:55:26 +02:00

go-webdav

Go Reference

A Go library for WebDAV, CalDAV and CardDAV.

License

MIT

Description
Fork of emersion/go-webdav (MIT) for BlissCRM: CalDAV sync tokens, ctag, scheduling and free/busy.
Readme MIT 649 KiB
Languages
Go 100%