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

Function middleware

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

Source from the content-addressed store, hash-verified

803 })
804 },
805 middleware(this: Top, middleware: HttpApiMiddleware.AnyService) {
806 return makeProto({
807 ...optionsFromEndpoint(this),
808 middlewares: new Set([...this.middlewares, middleware as any])
809 })
810 },
811 annotate(this: Top, key: Context.Key<any, any>, value: any) {
812 return makeProto({
813 ...optionsFromEndpoint(this),

Callers

nothing calls this directly

Calls 2

optionsFromEndpointFunction · 0.85
makeProtoFunction · 0.70

Tested by

no test coverage detected