You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pekko.apache.org by fa...@apache.org on 2025/09/09 12:28:52 UTC
(pekko-http) branch main updated: remove deprecated MediaTypes (#752)
This is an automated email from the ASF dual-hosted git repository.
fanningpj 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 6ecdfde6c remove deprecated MediaTypes (#752)
6ecdfde6c is described below
commit 6ecdfde6c8f28a1e5642bbe14c7ea16d5ec71f0f
Author: PJ Fanning <pj...@users.noreply.github.com>
AuthorDate: Tue Sep 9 13:28:47 2025 +0100
remove deprecated MediaTypes (#752)
---
.../2.0.x.backwards.excludes/remove-deprecated-methods.excludes | 3 +++
.../main/scala/org/apache/pekko/http/scaladsl/model/MediaType.scala | 6 ------
2 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/http-core/src/main/mima-filters/2.0.x.backwards.excludes/remove-deprecated-methods.excludes b/http-core/src/main/mima-filters/2.0.x.backwards.excludes/remove-deprecated-methods.excludes
index d3455e75d..d8a763c64 100644
--- a/http-core/src/main/mima-filters/2.0.x.backwards.excludes/remove-deprecated-methods.excludes
+++ b/http-core/src/main/mima-filters/2.0.x.backwards.excludes/remove-deprecated-methods.excludes
@@ -87,6 +87,9 @@ ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.http.scalad
ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.http.scaladsl.model.HttpRequest.copy$*")
ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.http.scaladsl.model.HttpResponse.copy")
ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.http.scaladsl.model.HttpResponse.copy$*")
+ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.http.scaladsl.model.MediaTypes.application/mspowerpoint")
+ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.http.scaladsl.model.MediaTypes.application/font-woff")
+ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.http.scaladsl.model.MediaTypes.application/excel")
ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.http.scaladsl.model.StatusCodes.HTTPVersionNotSupported")
ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.http.scaladsl.model.StatusCodes.RequestEntityTooLarge")
ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.http.scaladsl.model.StatusCodes.RequestUriTooLong")
diff --git a/http-core/src/main/scala/org/apache/pekko/http/scaladsl/model/MediaType.scala b/http-core/src/main/scala/org/apache/pekko/http/scaladsl/model/MediaType.scala
index 61643de19..26c06b231 100644
--- a/http-core/src/main/scala/org/apache/pekko/http/scaladsl/model/MediaType.scala
+++ b/http-core/src/main/scala/org/apache/pekko/http/scaladsl/model/MediaType.scala
@@ -367,10 +367,6 @@ object MediaTypes extends ObjectRegistry[(String, String), MediaType] {
val `application/atom+xml` = awoc("atom+xml", "atom")
val `application/base64` = awoc("base64", "mm", "mme")
val `application/cbor` = abin("cbor", Compressible, "cbor")
- @deprecated("This format is unofficial and should not be used. Use application/vnd.ms-excel instead.", "Akka HTTP 10.1.6")
- val `application/excel` = abin("excel", NotCompressible)
- @deprecated("This format is unofficial and should not be used. Use font/woff instead.", "Akka HTTP 10.1.7")
- val `application/font-woff` = abin("font-woff", NotCompressible)
val `application/gnutar` = abin("gnutar", NotCompressible, "tgz")
val `application/java-archive` = abin("java-archive", NotCompressible, "jar", "war", "ear")
val `application/javascript` = awoc("javascript", "js", "mjs")
@@ -381,8 +377,6 @@ object MediaTypes extends ObjectRegistry[(String, String), MediaType] {
val `application/grpc+proto` = abin("grpc+proto", NotCompressible)
val `application/lha` = abin("lha", NotCompressible, "lha")
val `application/lzx` = abin("lzx", NotCompressible, "lzx")
- @deprecated("This format is unofficial and should not be used. Use application/vnd.ms-powerpoint instead.", "Akka HTTP 10.1.6")
- val `application/mspowerpoint` = abin("mspowerpoint", NotCompressible)
val `application/msword` = abin("msword", NotCompressible, "doc", "dot", "w6w", "wiz", "word", "wri")
val `application/octet-stream` = abin("octet-stream", NotCompressible, "a", "bin", "class", "dump", "exe", "lhx", "lzh", "o", "psd", "saveme", "zoo")
val `application/pdf` = abin("pdf", NotCompressible, "pdf")
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org