MCPcopy Index your code
hub / github.com/Effect-TS/effect / middleware

Function middleware

packages/platform/src/HttpApiEndpoint.ts:809–815  ·  view source on GitHub ↗
(this: HttpApiEndpoint.AnyWithProps, middleware: HttpApiMiddleware.TagClassAny)

Source from the content-addressed store, hash-verified

807 })
808 },
809 middleware(this: HttpApiEndpoint.AnyWithProps, middleware: HttpApiMiddleware.TagClassAny) {
810 return makeProto({
811 ...this,
812 errorSchema: HttpApiSchema.UnionUnify(this.errorSchema, middleware.failure),
813 middlewares: new Set([...this.middlewares, middleware])
814 })
815 },
816 annotate(this: HttpApiEndpoint.AnyWithProps, tag: Context.Tag<any, any>, value: any) {
817 return makeProto({
818 ...this,

Callers

nothing calls this directly

Calls 1

makeProtoFunction · 0.70

Tested by

no test coverage detected