private RequestMethod getRequestMethod(HttpMethod httpMethod) {
		RequestMethod requestMethod = null;
		switch (httpMethod.name()) {
			case "GET" -> requestMethod = RequestMethod.GET;
			case "POST" -> requestMethod = RequestMethod.POST;
			case "PUT" -> requestMethod = RequestMethod.PUT;
			case "DELETE" -> requestMethod = RequestMethod.DELETE;
			case "PATCH" -> requestMethod = RequestMethod.PATCH;
			case "HEAD" -> requestMethod = RequestMethod.HEAD;
			case "OPTIONS" -> requestMethod = RequestMethod.OPTIONS;
			case "TRACE" -> requestMethod = RequestMethod.TRACE;
			default ->
					throw new IllegalStateException("Unexpected value: " + httpMethod.name());
		}
		return requestMethod;
	}
Gets request method.

@param httpMethod the http method
@return the request method
springdoc-openapi-starter-common/src/main/java/org/springdoc/core/fn/RouterFunctionData.java