Package io.micronaut.gcp.function.http
Class BodyUtils
java.lang.Object
io.micronaut.gcp.function.http.BodyUtils
Utility class to provide conversion for HTTP request body.
- Since:
- 4.0.0
- Author:
- Sergio del Amo
-
Method Summary
-
Method Details
-
bodyAsByteArray
@NonNull public static @NonNull Optional<byte[]> bodyAsByteArray(@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)
-