mirror of
https://github.com/apple/swift-nio
synced 2026-11-25 04:47:49 +00:00
Motivation: MessageToByteEncoder was a protocol that similar to ByteToMessageDecoder was pretty hard to hold correctly (override some methods but not others). This PR brings MessageToByteEncoder more in line with the new ByteToMessageDecoder. Modifications: - refactor `MessageToByteEncoder` - introduce `MessageToByteHandler`, similar to `ByteToMessageHandler` Result: - better API, more similar to ByteToMessageDecoder - fixes #864