Class TurboStreamMessageBodyWriter

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

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

    • TurboStreamMessageBodyWriter

      public TurboStreamMessageBodyWriter()
  • Method Details

    • writeTo

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