This is an automated email from the ASF dual-hosted git repository.
pjfanning pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko-http.git
The following commit(s) were added to refs/heads/main by this push:
new e5f84e94d make withLevel package private (#1104)
e5f84e94d is described below
commit e5f84e94db185a4ccf8a935e56ce85b8a9c3ea09
Author: PJ Fanning <[email protected]>
AuthorDate: Wed Jul 1 11:01:36 2026 +0100
make withLevel package private (#1104)
* make withLevel package private
* comment
---
.../scala/org/apache/pekko/http/scaladsl/coding/Deflate.scala | 8 ++++----
.../main/scala/org/apache/pekko/http/scaladsl/coding/Gzip.scala | 8 ++++----
.../scala/org/apache/pekko/http/scaladsl/coding/NoCoding.scala | 2 +-
3 files changed, 9 insertions(+), 9 deletions(-)
diff --git
a/http/src/main/scala/org/apache/pekko/http/scaladsl/coding/Deflate.scala
b/http/src/main/scala/org/apache/pekko/http/scaladsl/coding/Deflate.scala
index 07f781581..5c3c39d5b 100644
--- a/http/src/main/scala/org/apache/pekko/http/scaladsl/coding/Deflate.scala
+++ b/http/src/main/scala/org/apache/pekko/http/scaladsl/coding/Deflate.scala
@@ -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 {
@@ -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)
diff --git
a/http/src/main/scala/org/apache/pekko/http/scaladsl/coding/Gzip.scala
b/http/src/main/scala/org/apache/pekko/http/scaladsl/coding/Gzip.scala
index 559692866..e7e2926e4 100644
--- a/http/src/main/scala/org/apache/pekko/http/scaladsl/coding/Gzip.scala
+++ b/http/src/main/scala/org/apache/pekko/http/scaladsl/coding/Gzip.scala
@@ -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 {
@@ -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)
diff --git
a/http/src/main/scala/org/apache/pekko/http/scaladsl/coding/NoCoding.scala
b/http/src/main/scala/org/apache/pekko/http/scaladsl/coding/NoCoding.scala
index 0bc42dfe2..6a08f6408 100644
--- a/http/src/main/scala/org/apache/pekko/http/scaladsl/coding/NoCoding.scala
+++ b/http/src/main/scala/org/apache/pekko/http/scaladsl/coding/NoCoding.scala
@@ -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 {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]