code: public static boolean isPostOrPut(HttpServerRequest request) {
          return request.method().name().equalsIgnoreCase(HttpMethod.POST.name())
                  || request.method().name().equalsIgnoreCase(HttpMethod.PUT.name());
      }
docs: Checks whether the current request is either using the "POST" or "PUT" HTTP methods. This method let checks if
  the request can except a {@literal multipart} body or not.
  
  @param request the request
  @return {@code true} if the request use either "POST" or "PUT", {@code false} otherwise.