MCPcopy Create free account
hub / github.com/effect-app/libs / middleware

Function middleware

repos/effect/packages/effect/src/unstable/rpc/Rpc.ts:820–830  ·  view source on GitHub ↗
(this: AnyWithProps, middleware: RpcMiddleware.AnyService)

Source from the content-addressed store, hash-verified

818 })
819 },
820 middleware(this: AnyWithProps, middleware: RpcMiddleware.AnyService) {
821 return makeProto({
822 _tag: this._tag,
823 payloadSchema: this.payloadSchema,
824 successSchema: this.successSchema,
825 errorSchema: this.errorSchema,
826 defectSchema: this.defectSchema,
827 annotations: this.annotations,
828 middlewares: new Set([...this.middlewares, middleware])
829 })
830 },
831 prefix(this: AnyWithProps, prefix: string) {
832 return makeProto({
833 _tag: `${prefix}${this._tag}`,

Callers 4

applyMiddlewareFunction · 0.70
layerClientFunction · 0.70
onEffectRequestFunction · 0.70
RpcClient.tsFile · 0.70

Calls 1

makeProtoFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…