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

Class RequestContextMap

packages/infra/test/fixtures.ts:54–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52)
53
54export class RequestContextMap extends RpcContextMap.makeMap({
55 allowAnonymous: RpcContextMap.makeInverted<UserProfile>()(NotLoggedInError),
56 requireRoles: RpcContextMap.makeCustom()(UnauthorizedError, Array<string>()),
57 test: RpcContextMap.make()(S.Never)
58}) {}
59
60export class AllowAnonymous extends RpcX.RpcMiddleware.Tag<AllowAnonymous, { requires: SomeElse }>()("AllowAnonymous", {
61 dynamic: RequestContextMap.get("allowAnonymous")

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…