loqui v0.4.5 Loqui.Protocol.Compressor behaviour View Source

A compressor

A compressor is concerned with compressing and decompressing iodata.

Link to this section Summary

Callbacks

Compresses encoded data before sending it across the network

Decompresses data retrieved from the network

The name of the compressor

Link to this section Types

Link to this section Callbacks

Link to this callback compress(iodata) View Source
compress(iodata()) :: iodata()

Compresses encoded data before sending it across the network.

Link to this callback decompress(iodata) View Source
decompress(iodata()) :: iodata()

Decompresses data retrieved from the network.

The name of the compressor.

This name is sent during protocol negotiation between the client and the server.