Class BodyUtils

java.lang.Object
io.micronaut.function.aws.proxy.test.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

    • 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)