Class TurboStreamBuilderMessageBodyWriter

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

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

    • TurboStreamBuilderMessageBodyWriter

      public TurboStreamBuilderMessageBodyWriter(TurboStreamRenderer turboStreamRenderer)
  • Method Details

    • writeTo

      public void writeTo(@NonNull @NonNull io.micronaut.core.type.Argument<TurboStream.Builder> type, @NonNull @NonNull io.micronaut.http.MediaType mediaType, TurboStream.Builder turboStreamBuilder, @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<TurboStream.Builder>
      Throws:
      io.micronaut.http.codec.CodecException