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

Function middleware

packages/effect/src/unstable/httpapi/HttpApiGroup.ts:324–329  ·  view source on GitHub ↗
(this: Top, middleware: HttpApiMiddleware.AnyService)

Source from the content-addressed store, hash-verified

322 })
323 },
324 middleware(this: Top, middleware: HttpApiMiddleware.AnyService) {
325 return makeProto({
326 ...optionsFromGroup(this),
327 endpoints: Record.map(this.endpoints, (endpoint) => endpoint.middleware(middleware as any))
328 })
329 },
330 annotateMerge<I>(this: Top, annotations: Context.Context<I>) {
331 return makeProto({
332 ...optionsFromGroup(this),

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected