MCPcopy Create free account
hub / github.com/effect-app/libs / RequestContextMap

Class RequestContextMap

packages/effect-app/test/rpc.test.ts:8–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6import { RpcContextMap } from "../src/rpc.js"
7
8export class RequestContextMap extends RpcContextMap.makeMap({
9 allowAnonymous: RpcContextMap.makeInverted()(NotLoggedInError),
10 requireRoles: RpcContextMap.makeCustom()(UnauthorizedError, Array<string>()),
11 test: RpcContextMap.make()(S.Never)
12}) {}
13
14const stubMiddleware = {
15 requestContextMap: RequestContextMap.config,

Callers

nothing calls this directly

Calls 2

makeMethod · 0.65
ArrayInterface · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…