Patch Changes
-
#2092
b974658
Thanks @tim-smart! - add Resolver.annotateHeaders and .annotateHeadersEffectThis allows you to add headers to every rpc request for the given resolver
-
#2092
b974658
Thanks @tim-smart! - add rpc Router.provideService and .provideServiceEffectwith these apis you can provide context to a Rpc or Router to eliminate
requirements.import { Rpc, Router } from "@effect/rpc" Router.make( Rpc.effect(MyRequest, () => ...) ).pipe( Router.provideServiceEffect(Session, makeSessionEffect) )
-
#2092
b974658
Thanks @tim-smart! - support Effect contructed resolvers in Rpc.call and Resolver.toClient -
Updated dependencies [
29739dd
]:- @effect/platform@0.44.2