Compressor

org.apache.pekko.http.scaladsl.coding.Compressor
@InternalApi
abstract class Compressor

A stateful object representing ongoing compression.

Attributes

Deprecated
[Since version Akka HTTP 10.2.0]
Source
Encoder.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

Compresses the given input and returns compressed data. The implementation can and will choose to buffer output data to improve compression. Use flush or compressAndFlush to make sure that all input data has been compressed and pending output data has been returned.

Compresses the given input and returns compressed data. The implementation can and will choose to buffer output data to improve compression. Use flush or compressAndFlush to make sure that all input data has been compressed and pending output data has been returned.

Attributes

Source
Encoder.scala

Combines compress + finish

Combines compress + finish

Attributes

Source
Encoder.scala

Combines compress + flush

Combines compress + flush

Attributes

Source
Encoder.scala

Closes this compressed stream and return the remaining compressed data. After calling this method, this Compressor cannot be used any further.

Closes this compressed stream and return the remaining compressed data. After calling this method, this Compressor cannot be used any further.

Attributes

Source
Encoder.scala
def flush(): ByteString

Flushes any output data and returns the currently remaining compressed data.

Flushes any output data and returns the currently remaining compressed data.

Attributes

Source
Encoder.scala