Class Gzip

java.lang.Object
akka.http.scaladsl.coding.Gzip
All Implemented Interfaces:
Coder, Decoder, Encoder, StreamDecoder
Direct Known Subclasses:
Gzip$

public class Gzip extends Object implements Coder, StreamDecoder
Deprecated.
Actual implementation of Gzip is internal, use Coders.Gzip instead. Since 10.2.0.
  • Constructor Details

    • Gzip

      public Gzip(int compressionLevel, scala.Function1<HttpMessage,Object> messageFilter)
      Deprecated.
    • Gzip

      public Gzip(scala.Function1<HttpMessage,Object> messageFilter)
      Deprecated.
  • Method Details

    • apply

      public static Gzip apply(scala.Function1<HttpMessage,Object> messageFilter)
      Deprecated.
    • encodeMessage

      public static akka.http.scaladsl.coding.Encoder.message encodeMessage(HttpMessage message)
      Deprecated.
    • encodeData

      public static <T> T encodeData(T t, DataMapper<T> mapper)
      Deprecated.
    • encoderFlow

      public static akka.stream.scaladsl.Flow<akka.util.ByteString,akka.util.ByteString,akka.NotUsed> encoderFlow()
      Deprecated.
    • encode

      public static akka.util.ByteString encode(akka.util.ByteString input)
      Deprecated.
    • encodeAsync

      public static scala.concurrent.Future<akka.util.ByteString> encodeAsync(akka.util.ByteString input, akka.stream.Materializer mat)
      Deprecated.
    • newEncodeTransformer

      public static akka.stream.stage.GraphStage<akka.stream.FlowShape<akka.util.ByteString,akka.util.ByteString>> newEncodeTransformer()
      Deprecated.
    • decodeMessage

      public static akka.http.scaladsl.coding.Decoder.message decodeMessage(HttpMessage message)
      Deprecated.
    • decodeData

      public static <T> T decodeData(T t, DataMapper<T> mapper)
      Deprecated.
    • decode

      public static scala.concurrent.Future<akka.util.ByteString> decode(akka.util.ByteString input, akka.stream.Materializer mat)
      Deprecated.
    • maxBytesPerChunk

      public static int maxBytesPerChunk()
      Deprecated.
    • withMaxBytesPerChunk

      public static Decoder withMaxBytesPerChunk(int newMaxBytesPerChunk)
      Deprecated.
    • decoderFlow

      public static akka.stream.scaladsl.Flow<akka.util.ByteString,akka.util.ByteString,akka.NotUsed> decoderFlow()
      Deprecated.
    • messageFilter

      public scala.Function1<HttpMessage,Object> messageFilter()
      Deprecated.
      Specified by:
      messageFilter in interface Encoder
    • encoding

      public HttpEncoding encoding()
      Deprecated.
      Specified by:
      encoding in interface Decoder
      Specified by:
      encoding in interface Encoder
    • newCompressor

      public GzipCompressor newCompressor()
      Deprecated.
      Specified by:
      newCompressor in interface Encoder
    • newDecompressorStage

      public scala.Function0<GzipDecompressor> newDecompressorStage(int maxBytesPerChunk)
      Deprecated.
      Specified by:
      newDecompressorStage in interface StreamDecoder
    • withLevel

      public Gzip withLevel(int level)
      Deprecated.
      Use Coders.Gzip(compressionLevel = ...) instead. Since 10.2.0.