upstream-ontologist 0.3.0

tracking of upstream project metadata
Documentation
1
2
3
4
5
6
7
8
9
// Too aggressive?
const DEFAULT_URLLIB_TIMEOUT: u64 = 3;

/// Builds an HTTP client with default settings for upstream metadata fetching
pub fn build_client() -> reqwest::ClientBuilder {
    reqwest::Client::builder()
        .user_agent(crate::USER_AGENT)
        .timeout(std::time::Duration::from_secs(DEFAULT_URLLIB_TIMEOUT))
}