!htc restructure HttpEntity model on the Java side for consistency in modelling approach

This commit is contained in:
Mathias 2015-12-16 15:38:20 +01:00
parent 42b694fa7b
commit 902bcbaa10
11 changed files with 179 additions and 198 deletions

View file

@ -156,7 +156,7 @@ public class HttpServerExampleDocTest {
.via(failureDetection)
.map(request -> {
Source<ByteString, Object> bytes = request.entity().getDataBytes();
HttpEntityChunked entity = HttpEntities.create(ContentTypes.TEXT_PLAIN_UTF8, bytes);
HttpEntity.Chunked entity = HttpEntities.create(ContentTypes.TEXT_PLAIN_UTF8, bytes);
return HttpResponse.create()
.withEntity(entity);