Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import pekko.annotation.InternalApi
import pekko.http.scaladsl.model._
import pekko.http.scaladsl.model.headers.HttpEncodings

@InternalApi
@InternalApi // used by javadsl.coding.Coder
@deprecated("Actual implementation of Deflate is internal API, use Coders.Deflate instead", since = "Akka HTTP 10.2.0")
class Deflate private[http] (compressionLevel: Int, val messageFilter: HttpMessage => Boolean) extends Coder
with StreamDecoder {
Expand All @@ -30,9 +30,9 @@ class Deflate private[http] (compressionLevel: Int, val messageFilter: HttpMessa
private[http] def newCompressor = new DeflateCompressor(compressionLevel)
def newDecompressorStage(maxBytesPerChunk: Int) = () => new DeflateDecompressor(maxBytesPerChunk)

@deprecated("Use Coders.Deflate(compressionLevel = ...) instead", since = "Akka HTTP 10.2.0")
def withLevel(level: Int): Deflate = new Deflate(level, messageFilter)
@InternalApi // used by javadsl.coding.Coder
private[http] def withLevel(level: Int): Deflate = new Deflate(level, messageFilter)
}
@InternalApi
@InternalApi // used by javadsl.coding.Coder
@deprecated("Actual implementation of Deflate is internal API, use Coders.Deflate instead", since = "Akka HTTP 10.2.0")
object Deflate extends Deflate(Encoder.DefaultFilter)
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import pekko.annotation.InternalApi
import pekko.http.scaladsl.model._
import pekko.http.scaladsl.model.headers.HttpEncodings

@InternalApi
@InternalApi // used by javadsl.coding.Coder
@deprecated("Actual implementation of Gzip is internal, use Coders.Gzip instead", since = "Akka HTTP 10.2.0")
class Gzip private[http] (compressionLevel: Int, val messageFilter: HttpMessage => Boolean) extends Coder
with StreamDecoder {
Expand All @@ -30,14 +30,14 @@ class Gzip private[http] (compressionLevel: Int, val messageFilter: HttpMessage
private[http] def newCompressor = new GzipCompressor(compressionLevel)
def newDecompressorStage(maxBytesPerChunk: Int) = () => new GzipDecompressor(maxBytesPerChunk)

@deprecated("Use Coders.Gzip(compressionLevel = ...) instead", since = "Akka HTTP 10.2.0")
def withLevel(level: Int): Gzip = new Gzip(level, messageFilter)
@InternalApi // used by javadsl.coding.Coder
private[http] def withLevel(level: Int): Gzip = new Gzip(level, messageFilter)
}

/**
* An encoder and decoder for the HTTP 'gzip' encoding.
*/
@InternalApi
@InternalApi // used by javadsl.coding.Coder
@deprecated("Actual implementation of Gzip is internal API, use Coders.Gzip instead", since = "Akka HTTP 10.2.0")
object Gzip extends Gzip(Encoder.DefaultFilter) {
def apply(messageFilter: HttpMessage => Boolean) = new Gzip(messageFilter)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import pekko.util.ByteString
/**
* An encoder and decoder for the HTTP 'identity' encoding.
*/
@InternalApi
@InternalApi // used by javadsl.coding.Coder
@deprecated("Actual implementation of NoCoding is internal API, use Coders.NoCoding instead",
since = "Akka HTTP 10.2.0")
object NoCoding extends Coder with StreamDecoder {
Expand Down