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

Function middleware

packages/effect/src/unstable/httpapi/HttpApi.ts:178–183  ·  view source on GitHub ↗
(this: Top, tag: HttpApiMiddleware.AnyService)

Source from the content-addressed store, hash-verified

176 })
177 },
178 middleware(this: Top, tag: HttpApiMiddleware.AnyService) {
179 return makeProto({
180 ...optionsFromApi(this),
181 groups: Record.map(this.groups, (group) => group.middleware(tag as any))
182 })
183 },
184 annotate(this: Top, key: Context.Key<any, any>, value: any) {
185 return makeProto({
186 ...optionsFromApi(this),

Callers 4

executeMiddlewareFunction · 0.70
makeSecurityMiddlewareFunction · 0.70
layerClientFunction · 0.70
toHandledFunction · 0.50

Calls 4

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

Tested by

no test coverage detected