blob: e3f29e6601f51767ee953aae4cf4641a43d9553f (
plain) (
tree)
|
|
use std::sync::LazyLock;
use reqwest::Client;
pub(crate) fn new() -> Client {
Client::builder().https_only(true).user_agent(concat!(env!("CARGO_PKG_NAME"), "/", env!("CARGO_PKG_VERSION"))).build().unwrap()
}
pub(crate) const fn lazy() -> LazyLock<Client> {
LazyLock::new(new)
}
|