code: public static boolean isMultipart(HttpRequest request) {
          if (request.headers().contains(HttpHeaderNames.CONTENT_TYPE)) {
              return getMultipartDataBoundary(request.headers().get(HttpHeaderNames.CONTENT_TYPE)) != null;
          } else {
              return false;
          }
      }
docs: Check if the given request is a multipart request
  @return True if the request is a Multipart request