akka/akka-http
Clarify difference in docs between EntityStreamingSupport for any source and low-level Source[ByteString, Any]
開放
#895 建立於 2017年2月23日
1 - triagedhelp wantedt:docs
倉庫指標
- 星標
- (1,311 顆星)
- PR 合併指標
- (平均合併 1天 10小時) (30 天內合併 2 個 PR)
描述
As per the gitter discussion with @ktoso, it could be probably worth mentioning in the docs that EntityStreamingSupport is only needed to complete a route with a stream of "discrete elements" like for example json arrays or csv entries, while a low level byte stream could be simply sent back to the client doing something like:
complete(HttpEntity(contentType, byteStringSource))