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

Function middleware

packages/platform/src/HttpApi.ts:205–213  ·  view source on GitHub ↗
(this: HttpApi.AnyWithProps, tag: HttpApiMiddleware.TagClassAny)

Source from the content-addressed store, hash-verified

203 })
204 },
205 middleware(this: HttpApi.AnyWithProps, tag: HttpApiMiddleware.TagClassAny) {
206 return makeProto({
207 identifier: this.identifier,
208 groups: this.groups,
209 errorSchema: HttpApiSchema.UnionUnify(this.errorSchema, tag.failure),
210 annotations: this.annotations,
211 middlewares: new Set([...this.middlewares, tag])
212 })
213 },
214 annotate(this: HttpApi.AnyWithProps, tag: Context.Tag<any, any>, value: any) {
215 return makeProto({
216 identifier: this.identifier,

Callers 1

toHandledFunction · 0.70

Calls 1

makeProtoFunction · 0.70

Tested by

no test coverage detected