asterisk-rs-ari 0.7.2

Async Rust client for the Asterisk REST Interface (ARI)
Documentation
1
2
3
4
5
6
7
8
9
/// strip query parameters from a url to avoid logging credentials
///
/// returns everything before `?`, or the full string if no query is present
pub(crate) fn redact_url(url: &str) -> &str {
    match url.split_once('?') {
        Some((base, _)) => base,
        None => url,
    }
}