MCPcopy Create free account
hub / github.com/tinyhttp/tinyhttp / get

Method get

packages/session/src/index.ts:635–638  ·  view source on GitHub ↗

* Fetch session by the given session ID. * @param id Session ID * @param cb Callback

(id: string, cb: (err?: any, session?: any) => void)

Source from the content-addressed store, hash-verified

633 * @param cb Callback
634 */
635 get(id: string, cb: (err?: any, session?: any) => void) {
636 const session = this.getSession(id)
637 setImmediate(() => cb(null, session))
638 }
639
640 /**
641 * Commit the given session associated with the given ID to the store.

Callers

nothing calls this directly

Calls 1

getSessionMethod · 0.95

Tested by

no test coverage detected