Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas committed Oct 24, 2016
1 parent f32dd65 commit 14b744a
Show file tree
Hide file tree
Showing 5 changed files with 240 additions and 56 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ object JavaAccessors {

/** INTERNAL API */
def HttpEntity(contentType: ContentType, file: File): UniversalEntity =
model.HttpEntity(contentType.asScala, file)
model.HttpEntity.fromPath(contentType.asScala, file.toPath)

/** INTERNAL API */
def HttpEntity(contentType: ContentType, file: Path): UniversalEntity =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ sealed trait HttpEntity extends jm.HttpEntity {
*
* In many cases it's dangerous to rely on the (non-)existence of a content-length.
* HTTP intermediaries like (transparent) proxies are allowed to change the transfer-encoding
* which can result in the entity being delivered as another type as expected.
* which can result in the entity being delivered as another type than expected.
*/
def contentLengthOption: Option[Long]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ import akka.http.impl.util.JavaMapping.Implicits._
import scala.compat.java8.FutureConverters._
import java.util.concurrent.CompletionStage

import akka.http.javadsl.model.RequestEntity

/**
* The model of multipart content for media-types `multipart/\*` (general multipart content),
* `multipart/form-data` and `multipart/byteranges`.
Expand Down

0 comments on commit 14b744a

Please sign in to comment.