Class BodyUtils
java.lang.Object
io.micronaut.function.aws.proxy.test.BodyUtils
Utility class to provide conversion for HTTP request body.
- Since:
- 4.0.0
- Author:
- Sergio del Amo
-
Method Summary
-
Method Details
-
bodyAsString
@NonNull public static @NonNull Optional<String> bodyAsString(@NonNull @NonNull io.micronaut.json.JsonMapper jsonMapper, @NonNull @NonNull Supplier<io.micronaut.http.MediaType> contentTypeSupplier, @NonNull @NonNull Supplier<Charset> characterEncodingSupplier, @NonNull @NonNull Supplier<Object> bodySupplier)
-