Class AttachmentUtils

java.lang.Object
io.micronaut.projectgen.http.server.utils.AttachmentUtils

public final class AttachmentUtils extends Object
Utility class for controller attachment responses.
  • Method Details

    • attachment

      public static io.micronaut.http.HttpResponse<?> attachment(Object body, io.micronaut.http.MediaType contentType, String fileName)
      Parameters:
      body - Response Body
      contentType - Response Content-Type
      fileName - attachment file name
      Returns:
      HTTP Response