headless_lms_utils/
http.rs

1
2
3
4
5
6
7
8
9
use once_cell::sync::Lazy;

pub static REQWEST_CLIENT: Lazy<reqwest::Client> = Lazy::new(|| {
    reqwest::Client::builder()
        .use_rustls_tls()
        .https_only(true)
        .build()
        .expect("Failed to build Client")
});