Overview of NIOExtras utilities
mainNIOExtras is a collection of utilities designed to assist in building and debugging Swift-NIO applications. It provides tools across four main categories:
- Debugging Aids:
ChannelHandlers for logging inbound/outbound pipeline events and logging data in packet capture (PCAP) format. - Encoding and Decoding: Helpers for common data frame formats, including fixed-length frames, newline-terminated frames, length-prefixed frames, and frames defined by a
context-lengthheader. - Channel Pipeline Aids: Tools like
ServerQuiescingHelperfor managing child channels andRequestResponseHandlerfor simplifying request-response flows. - Data Types: Specialized types like
NIOLengthFieldBitLengthto support framing logic.