Interface TurboFrameRenderer

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

@DefaultImplementation(DefaultTurboFrameRenderer.class) @FunctionalInterface public interface TurboFrameRenderer
Renders a TurboStream into a Writable.
Since:
3.4.0
Author:
Sergio del Amo
  • Method Summary

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

    • render

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