krill 0.16.0

Resource Public Key Infrastructure (RPKI) daemon
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Utils for the HTTP service.
//!
//! This is a temporary place to park some things until we find a better home
//! for them.

#[cfg(feature = "multi-user")]
pub fn url_encode<S: AsRef<str>>(
    s: S
) -> Result<String, crate::commons::error::Error> {
    urlparse::quote(s, b"").map_err(|err| {
        crate::commons::error::Error::custom(err.to_string())
    })
}