Library Moduleswift-nio-extras 1.25.0NIOHTTPCompression

NIOHTTPCompression

Automatic compression and decompression of HTTP data.

index.md
import NIOHTTPCompression

Module information

Declarations
64
Symbols
143

Coverage

84.4 percent of the declarations in NIOHTTPCompression are fully documented14.1 percent of the declarations in NIOHTTPCompression are indirectly documented1.6 percent of the declarations in NIOHTTPCompression are completely undocumented

Declarations

32.8 percent of the declarations in NIOHTTPCompression are initializers, type members, or enum cases23.4 percent of the declarations in NIOHTTPCompression are instance members14.1 percent of the declarations in NIOHTTPCompression are structures6.3 percent of the declarations in NIOHTTPCompression are classes23.4 percent of the declarations in NIOHTTPCompression are typealiases

Interfaces

100.0 percent of the declarations in NIOHTTPCompression are unrestricted
Module stats and coverage details

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.

Client Channel Handlers

Server Channel Handlers

Compression Methods