core/play/src/main/java/play/http/HttpEntity.java
public static final HttpEntity chunked(Source<ByteString, ?> data, Optional<String> contentType) {
    return new Chunked(data.map(HttpChunk.Chunk::new), contentType);
  }
public static final HttpEntity chunked(Source<ByteString, ?> data, Optional<String> contentType) {
    return new Chunked(data.map(HttpChunk.Chunk::new), contentType);
  }
public static final HttpEntity chunked ( Source < ByteString , ? > data , Optional < String > contentType ) { return new Chunked ( data . map ( HttpChunk . Chunk :: new ) , contentType ) ; }
Convert the given source of ByteStrings to a chunked entity.

@param data The source.
@param contentType The optional content type.
@return The ByteStrings.
Convert the given source of ByteStrings to a chunked entity .