MCPcopy
hub / github.com/tinyhttp/tinyhttp / shouldTouch

Function shouldTouch

packages/session/src/index.ts:359–360  ·  view source on GitHub ↗
(id?: string, session?: Session)

Source from the content-addressed store, hash-verified

357
358 // determine if session should be touched
359 const shouldTouch = (id?: string, session?: Session) =>
360 typeof id !== 'string' ? false : cookieId === id && !shouldSave(id, session)
361
362 // TODO: Get rid of onHeaders dep
363 onHeaders(res, () => {

Callers 1

SessionManagerFunction · 0.85

Calls 1

shouldSaveFunction · 0.85

Tested by

no test coverage detected