akka/akka-http
Clarify difference in docs between EntityStreamingSupport for any source and low-level Source[ByteString, Any]
Offen
#895 geöffnet am 23.02.2017
1 - triagedhelp wantedt:docs
Repository-Metriken
- Stars
- (1.311 Sterne)
- PR-Merge-Metriken
- (Durchschn. Merge 1T 10h) (2 gemergte PRs in 30 T)
Beschreibung
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))