1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
//! Web services and utilities.
use reqwest::header::HeaderValue;
pub mod csrf;
pub mod middlewares;
pub mod services;
lazy_static! {
static ref TELESCOPE_USER_AGENT: String =
format!("rcos-telescope/{}", env!("CARGO_PKG_VERSION"));
}
/// Get the telescope User-Agent string.
pub fn telescope_ua() -> HeaderValue {
HeaderValue::from_str(TELESCOPE_USER_AGENT.as_str())
.expect("Could not make Telescope User-Agent")
}