Recent changes in ProtobufDecoder have made it more open to extension. One thing that is missing still is the ability to override the Message creation step. The base class does all the interesting stuff, and comes up with a byte buffer with the message contents, but then doesn't allow you to insert your own logic for decoding. A protected method in ProtobufDecoder would be great, or a helper interface like MessageSizeReader.
Would enable us to more easily (without copy-pasting the whole of ProtobufDecoder) support grpc-web in spring-projects/spring-grpc#427.
Recent changes in
ProtobufDecoderhave made it more open to extension. One thing that is missing still is the ability to override theMessagecreation step. The base class does all the interesting stuff, and comes up with a byte buffer with the message contents, but then doesn't allow you to insert your own logic for decoding. A protected method inProtobufDecoderwould be great, or a helper interface likeMessageSizeReader.Would enable us to more easily (without copy-pasting the whole of
ProtobufDecoder) support grpc-web in spring-projects/spring-grpc#427.