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 2023/06/11 11:08:35 UTC

[incubator-pekko-http] branch main updated: make Content-Type and Content-Length constructors accessible in pekko packages (#178)

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/incubator-pekko-http.git


The following commit(s) were added to refs/heads/main by this push:
     new 187de00b1 make Content-Type and Content-Length constructors accessible in pekko packages (#178)
187de00b1 is described below

commit 187de00b1c512f6c09726e6218f60edaa40a65a8
Author: PJ Fanning <pj...@users.noreply.github.com>
AuthorDate: Sun Jun 11 12:08:30 2023 +0100

    make Content-Type and Content-Length constructors accessible in pekko packages (#178)
    
    Pekko-Connectors S3 uses these constructors
---
 .../scala/org/apache/pekko/http/scaladsl/model/headers/headers.scala  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/http-core/src/main/scala/org/apache/pekko/http/scaladsl/model/headers/headers.scala b/http-core/src/main/scala/org/apache/pekko/http/scaladsl/model/headers/headers.scala
index 03affb06a..faba47015 100644
--- a/http-core/src/main/scala/org/apache/pekko/http/scaladsl/model/headers/headers.scala
+++ b/http-core/src/main/scala/org/apache/pekko/http/scaladsl/model/headers/headers.scala
@@ -459,7 +459,7 @@ object `Content-Length` extends ModeledCompanion[`Content-Length`]
  * Instances of this class will only be created transiently during header parsing and will never appear
  * in HttpMessage.header. To access the Content-Length, see subclasses of HttpEntity.
  */
-final case class `Content-Length` private[http] (length: Long) extends jm.headers.ContentLength
+final case class `Content-Length` private[pekko] (length: Long) extends jm.headers.ContentLength
     with RequestResponseHeader {
   def renderValue[R <: Rendering](r: R): r.type = r ~~ length
   protected def companion = `Content-Length`
@@ -555,7 +555,7 @@ object `Content-Type` extends ModeledCompanion[`Content-Type`]
  * Instances of this class will only be created transiently during header parsing and will never appear
  * in HttpMessage.header. To access the Content-Type, see subclasses of HttpEntity.
  */
-final case class `Content-Type` private[http] (contentType: ContentType) extends jm.headers.ContentType
+final case class `Content-Type` private[pekko] (contentType: ContentType) extends jm.headers.ContentType
     with RequestResponseHeader {
   def renderValue[R <: Rendering](r: R): r.type = r ~~ contentType
   protected def companion = `Content-Type`


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org