blob: ebd28f9cf7ab3fa235eedc0d604dd01a6defa144 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
/// Returns the common User-Agent string for all HTTP requests.
///
/// Format: `Mozart/<version> (<os>; <arch>)`
pub fn user_agent() -> String {
format!(
"Mozart/{} ({}; {})",
env!("CARGO_PKG_VERSION"),
std::env::consts::OS,
std::env::consts::ARCH,
)
}
|