uvm_core 0.13.4

The core functionality for the unity version manager commandline client.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use reqwest::header;
use std::time::Duration;

lazy_static! {
    pub static ref CLIENT: reqwest::Client = {
        let mut headers = header::HeaderMap::new();
        headers.insert(header::USER_AGENT, header::HeaderValue::from_static("uvm"));
        reqwest::Client::builder()
            .gzip(true)
            .default_headers(headers)
            .timeout(Duration::from_secs(10))
            .build()
            .expect("Create http client")
    };
}