Class ArmeriaMessageDeframer

java.lang.Object
com.linecorp.armeria.common.grpc.protocol.ArmeriaMessageDeframer
All Implemented Interfaces:
HttpDecoder<DeframedMessage>, StreamDecoder<HttpData,DeframedMessage>

@UnstableApi public class ArmeriaMessageDeframer extends Object implements HttpDecoder<DeframedMessage>
A deframer of messages transported in the gRPC wire format. See gRPC Wire Format for more detail on the protocol.

The logic has been mostly copied from io.grpc.internal.MessageDeframer, while removing the buffer abstraction in favor of using ByteBuf directly, and allowing the delivery of uncompressed frames as a ByteBuf to optimize message parsing.