public static boolean isCorsPreflightRequest(RequestHeaders headers) {
        requireNonNull(headers, "headers");
        return headers.method() == HttpMethod.OPTIONS &&
               headers.contains(HttpHeaderNames.ORIGIN) &&
               headers.contains(HttpHeaderNames.ACCESS_CONTROL_REQUEST_METHOD);
    }
Returns {@code true} if the specified {@code headers} is a CORS preflight request.
core/src/main/java/com/linecorp/armeria/internal/common/ArmeriaHttpUtil.java