caldav: add Client.QueryCalendar

This commit is contained in:
Simon Ser
2020-02-03 17:26:55 +01:00
parent dd1527b97e
commit ca51e9427a
4 changed files with 124 additions and 1 deletions

View File

@@ -109,6 +109,7 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
if href != nil {
w.Header().Set("Location", (*url.URL)(href).String())
}
// TODO: http.StatusNoContent if the resource already existed
w.WriteHeader(http.StatusCreated)
}
case http.MethodDelete: