Class TurboMediaType

java.lang.Object
io.micronaut.views.turbo.http.TurboMediaType

public final class TurboMediaType extends Object
Utility class to decorate an HTTP response with Turbo content-type.
Since:
3.3.0
Author:
Sergio del Amo
  • Field Details

    • TURBO_STREAM

      public static final String TURBO_STREAM
      Turbo Stream Content Type.
      See Also:
    • TURBO_STREAM_TYPE

      public static final io.micronaut.http.MediaType TURBO_STREAM_TYPE
      Turbo Stream Content Type.
  • Method Details

    • acceptsTurboStream

      public static boolean acceptsTurboStream(@NonNull @NonNull io.micronaut.http.HttpRequest<?> request)