Refresh refreshes the lock with the given token. If Refresh returns ErrLocked then the Handler will write a "423 Locked" HTTP Status. If Refresh returns ErrNoSuchLock then the Handler will write a "412 Precondition Failed" HTTP Status. If it returns any other non-nil error, the Handler will write a
(now time.Time, token string, duration time.Duration)
| 78 | // See http://www.webdav.org/specs/rfc4918.html#rfc.section.9.10.6 for |
| 79 | // when to use each error. |
| 80 | Refresh(now time.Time, token string, duration time.Duration) (LockDetails, error) |
| 81 | |
| 82 | // Unlock unlocks the lock with the given token. |
| 83 | // |
no outgoing calls