Class TurboStreamListOfBuilderMessageBodyWriter

java.lang.Object
io.micronaut.views.turbo.TurboStreamListOfBuilderMessageBodyWriter
All Implemented Interfaces:
io.micronaut.http.body.MessageBodyWriter<List<TurboStream.Builder>>

@Produces("text/vnd.turbo-stream.html") @Singleton public class TurboStreamListOfBuilderMessageBodyWriter extends Object implements io.micronaut.http.body.MessageBodyWriter<List<TurboStream.Builder>>
Since:
4.1.0
Author:
Sergio del Amo
  • Constructor Details

    • TurboStreamListOfBuilderMessageBodyWriter

      public TurboStreamListOfBuilderMessageBodyWriter(TurboStreamRenderer turboStreamRenderer)
  • Method Details

    • writeTo

      public void writeTo(@NonNull @NonNull io.micronaut.core.type.Argument<List<TurboStream.Builder>> type, @NonNull @NonNull io.micronaut.http.MediaType mediaType, List<TurboStream.Builder> turboStreamBuilders, @NonNull @NonNull io.micronaut.core.type.MutableHeaders outgoingHeaders, @NonNull @NonNull OutputStream outputStream) throws io.micronaut.http.codec.CodecException
      Specified by:
      writeTo in interface io.micronaut.http.body.MessageBodyWriter<List<TurboStream.Builder>>
      Throws:
      io.micronaut.http.codec.CodecException