Class BodyUtils

java.lang.Object
io.micronaut.gcp.function.http.BodyUtils

@Internal public final class BodyUtils extends Object
Utility class to provide conversion for HTTP request body.
Since:
4.0.0
Author:
Sergio del Amo
  • 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)