Class EntityStreamingSupport$
- java.lang.Object
-
- akka.http.scaladsl.common.EntityStreamingSupport$
-
public class EntityStreamingSupport$ extends java.lang.ObjectEntity streaming support, independent of used Json parsing library etc.
-
-
Field Summary
Fields Modifier and Type Field Description static EntityStreamingSupport$MODULE$Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description EntityStreamingSupport$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CsvEntityStreamingSupportcsv()Defaulttext/csv(UTF-8)entity streaming support.CsvEntityStreamingSupportcsv(int maxLineLength)Defaulttext/csv(UTF-8)entity streaming support.JsonEntityStreamingSupportjson()Defaultapplication/jsonentity streaming support.JsonEntityStreamingSupportjson(int maxObjectLength)Defaultapplication/jsonentity streaming support.
-
-
-
Field Detail
-
MODULE$
public static final EntityStreamingSupport$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
json
public JsonEntityStreamingSupport json()
Defaultapplication/jsonentity streaming support.Provides framing (based on scanning the incoming dataBytes for valid JSON objects, so for example uploads using arrays or new-line separated JSON objects are all parsed correctly) and rendering of Sources as JSON Arrays. A different very popular style of returning streaming JSON is to separate JSON objects on a line-by-line basis, you can configure the support trait to do so by calling
withFramingRendererFlow.Limits the maximum JSON object length to 8KB, if you want to increase this limit provide a value explicitly.
- Returns:
- (undocumented)
-
json
public JsonEntityStreamingSupport json(int maxObjectLength)
Defaultapplication/jsonentity streaming support.Provides framing (based on scanning the incoming dataBytes for valid JSON objects, so for example uploads using arrays or new-line separated JSON objects are all parsed correctly) and rendering of Sources as JSON Arrays. A different very popular style of returning streaming JSON is to separate JSON objects on a line-by-line basis, you can configure the support trait to do so by calling
withFramingRendererFlow.- Parameters:
maxObjectLength- (undocumented)- Returns:
- (undocumented)
-
csv
public CsvEntityStreamingSupport csv()
Defaulttext/csv(UTF-8)entity streaming support. Provides framing and rendering of\nseparated lines and marshalling Sources into such values.Limits the maximum line-length to 8KB, if you want to increase this limit provide a value explicitly.
- Returns:
- (undocumented)
-
csv
public CsvEntityStreamingSupport csv(int maxLineLength)
Defaulttext/csv(UTF-8)entity streaming support. Provides framing and rendering of\nseparated lines and marshalling Sources into such values.- Parameters:
maxLineLength- (undocumented)- Returns:
- (undocumented)
-
-