mirror of
https://github.com/apple/swift-nio-extras
synced 2026-11-25 04:47:50 +00:00
Motivation: An index page ties all the other documentation together Modifications: Add index pages for the library targets. Correct a few minor errors in the main docs. Result: A more joined up documentation experience.
800 B
800 B
NIOHTTPCompression
Automatic compression and decompression of HTTP data.
Overview
Channel handlers to support automatic compression and decompression of HTTP data. Add the handlers to your pipeline to support the features you need.
Content-Encoding, Content-Length, and accept-encoding HTTP headers are set and respected where appropriate.
Be aware that this works best if there is sufficient data written between flushes. This also performs compute on the event loop thread which could impact performance.
Topics
Client Channel Handlers
NIOHTTPRequestCompressorNIOHTTPResponseDecompressor
Server Channel Handlers
NIOHTTPRequestDecompressorHTTPResponseCompressor
Compression Methods
NIOCompressionNIOHTTPDecompression