mylloon.fr/src/misc/utils.rs
Mylloon c344243484
Some checks are pending
ci/woodpecker/push/publish Pipeline is pending
* move get_post to blog.rs
* wip index blog
2023-04-19 20:17:03 +02:00

10 lines
229 B
Rust

use cached::proc_macro::cached;
use reqwest::Client;
#[cached]
pub fn get_reqwest_client() -> Client {
Client::builder()
.user_agent(format!("EWP/{}", env!("CARGO_PKG_VERSION")))
.build()
.unwrap()
}