Class JsonEntityStreamingSupport

    • Constructor Detail

      • JsonEntityStreamingSupport

        public JsonEntityStreamingSupport()
    • Method Detail

      • withFramingRendererFlow

        public abstract JsonEntityStreamingSupport withFramingRendererFlow​(akka.stream.javadsl.Flow<akka.util.ByteString,​akka.util.ByteString,​akka.NotUsed> flow)
        Java API: Write-side, apply framing to outgoing entity stream.

        Most typical usage will be a variant of Flow[ByteString].intersperse.

        For example for rendering a JSON array one would return Flow[ByteString].intersperse(ByteString("["), ByteString(","), ByteString("]")) and for rendering a new-line separated CSV simply Flow[ByteString].intersperse(ByteString("\n")).

        Parameters:
        flow - (undocumented)
        Returns:
        (undocumented)