Class BinaryContentConfiguration

java.lang.Object
io.micronaut.function.aws.proxy.BinaryContentConfiguration

@Internal @Singleton public final class BinaryContentConfiguration extends Object
Bean to check if response content is binary and should be base 64 encoded.
  • Constructor Details

    • BinaryContentConfiguration

      public BinaryContentConfiguration()
  • Method Details

    • addBinaryContentType

      public void addBinaryContentType(String contentType)
      Add a content type to the list of binary content types.
      Parameters:
      contentType - The content type to add
    • isBinary

      public boolean isBinary(String contentType)
      Parameters:
      contentType - The content type
      Returns:
      True if the content type is encoded as binary