Package io.micronaut.views.turbo.http
Class TurboMediaType
java.lang.Object
io.micronaut.views.turbo.http.TurboMediaType
Utility class to decorate an HTTP response with Turbo content-type.
- Since:
- 3.3.0
- Author:
- Sergio del Amo
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Turbo Stream Content Type.static final io.micronaut.http.MediaType
Turbo Stream Content Type. -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
acceptsTurboStream
(@NonNull io.micronaut.http.HttpRequest<?> request)
-
Field Details
-
TURBO_STREAM
Turbo Stream Content Type.- See Also:
-
TURBO_STREAM_TYPE
public static final io.micronaut.http.MediaType TURBO_STREAM_TYPETurbo Stream Content Type.
-
-
Method Details
-
acceptsTurboStream
public static boolean acceptsTurboStream(@NonNull @NonNull io.micronaut.http.HttpRequest<?> request)
-