asimov-module-cli 25.0.0-dev.7

ASIMOV Module Command-Line Interface (CLI)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
// This is free and unencumbered software released into the public domain.

use tokio::time::Duration;

pub fn http_client() -> reqwest::Client {
    // TODO: retry support
    reqwest::Client::builder()
        .user_agent("asimov-module-cli")
        .timeout(Duration::from_secs(10))
        .build()
        .expect("Failed to build HTTP client")
}