web-analyzer 0.1.7

Enterprise domain security & intelligence platform — WHOIS, DNS, SEO, tech detection, subdomain takeover, API security scanning, and more
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[cfg(feature = "security-analysis")]
#[tokio::test]
async fn test_analyze_security() {
    use web_analyzer::security_analysis::analyze_security;

    let result = analyze_security("example.com", None).await;
    assert!(
        result.is_ok(),
        "Failed to analyze security: {:?}",
        result.err()
    );

    let info = result.unwrap();
    assert_eq!(info.domain, "example.com");
    assert!(info.https_available);

    println!("Resolved security_analysis for example.com");
}