MCPcopy
hub / github.com/AlistGo/alist / Refresh

Method Refresh

server/webdav/lock.go:80–80  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 //

Callers 4

NewAuthServiceMethod · 0.65
handleLockMethod · 0.65
TestMemLSExpiryFunction · 0.65
TestMemLSFunction · 0.65

Implementers 1

memLSserver/webdav/lock.go

Calls

no outgoing calls

Tested by 2

TestMemLSExpiryFunction · 0.52
TestMemLSFunction · 0.52