zio-http
zio-http copied to clipboard
Config should be provided to codec in a dynamic way
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