MCPcopy
hub / github.com/tinyhttp/tinyhttp / inflate

Function inflate

packages/session/src/index.ts:473–483  ·  view source on GitHub ↗
(req: any, sess: Session)

Source from the content-addressed store, hash-verified

471
472 // inflate the session
473 function inflate(req: any, sess: Session) {
474 store.createSession(req as any, sess)
475 originalId = req.sessionID
476 originalHash = hash(sess)
477
478 if (!resaveSession) savedHash = originalHash
479
480 wrapmethods(req.session)
481
482 session = req.session
483 }
484
485 // wrap session methods
486 function wrapmethods(sess: Session) {

Callers 1

SessionManagerFunction · 0.85

Calls 2

hashFunction · 0.85
wrapmethodsFunction · 0.85

Tested by

no test coverage detected