クラスの使用
org.springframework.http.codec.EncoderHttpMessageWriter
org.springframework.http.codec.protobuf 内の EncoderHttpMessageWriter 使用
修飾子と型クラス説明class
HttpMessageWriter
は、protobufMessage
を書き込むことができ、X-Protobuf-Schema
、X-Protobuf-Message
ヘッダーを追加し、flux が直列化される場合はdelimited=true
パラメーターがコンテンツ型に追加されます。