zio-http icon indicating copy to clipboard operation
zio-http copied to clipboard

Config should be provided to codec in a dynamic way

Open 987Nabil opened this issue 7 months ago • 0 comments

Currently, we have a fixed config class that is required by zio-http to build binary codecs

case class BinaryCodecWithSchema[A](codecFn: CodecConfig => BinaryCodec[A], schema: Schema[A])

Since users can use custom BinaryCodecs, they should be able to use custom configs too. Instead of having a fixed config class, we should have something like a config store, that can store arbitrary configs that are then picked up when building the codec.

This is a breaking change and an idea for future versions of zio-http

987Nabil avatar May 01 '25 10:05 987Nabil