sectxtlib 0.1.2

A library for working with security.txt files
Documentation

sectxtlib

📄 Usage

This library can be used to parse a security.txt file. Check out how sectxt uses it for example:

async fn is_securitytxt(r: reqwest::Response) -> bool {
    if r.status() == reqwest::StatusCode::OK {
        if let Ok(s) = r.text().await {
            return SecurityTxt::try_from(&s[..]).is_ok();
        }
    }

    false
}