MCPcopy Create free account
hub / github.com/Effect-TS/effect / middleware

Function middleware

packages/effect/src/http-api/HttpApi.ts:187–192  ·  view source on GitHub ↗
(this: Top, tag: HttpApiMiddleware.AnyService)

Source from the content-addressed store, hash-verified

185 })
186 },
187 middleware(this: Top, tag: HttpApiMiddleware.AnyService) {
188 return makeProto({
189 ...optionsFromApi(this),
190 groups: Record.map(this.groups, (group) => group.middleware(tag as any))
191 })
192 },
193 annotate(this: Top, key: Context.Key<any, any>, value: any) {
194 return makeProto({
195 ...optionsFromApi(this),

Callers 3

executeMiddlewareFunction · 0.70
makeSecurityMiddlewareFunction · 0.70
layerClientFunction · 0.70

Calls 4

optionsFromApiFunction · 0.85
makeProtoFunction · 0.70
middlewareMethod · 0.65
mapMethod · 0.45

Tested by

no test coverage detected