Interface TurboStreamRenderer

All Known Implementing Classes:
DefaultTurboStreamRenderer
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@DefaultImplementation(DefaultTurboStreamRenderer.class) @FunctionalInterface public interface TurboStreamRenderer
Renders a TurboStream into a Writable.
Since:
3.3.0
Author:
Sergio del Amo
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull Optional<io.micronaut.core.io.Writable>
    render(TurboStream.Builder builder, @Nullable io.micronaut.http.HttpRequest<?> request)
     
  • Method Details

    • render

      @NonNull @NonNull Optional<io.micronaut.core.io.Writable> render(@NonNull TurboStream.Builder builder, @Nullable @Nullable io.micronaut.http.HttpRequest<?> request)
      Parameters:
      builder - Turbo Stream builder
      request - HTTP Request
      Returns:
      A Writable