pub fn param(&self, param: &str) -> Result<&str> {
        self.params.find(param).ok_or_else(|| {
            error!("parameter {} not found", param);
            Error::http(StatusCode::BAD_REQUEST)
        })
    }
/// Get a route parameter (eg. `:key` or `*key` segments in the URI path)
///
/// If the parameter is not present, logs an error and returns a `400 Bad Request` to the client
Get a route parameter
If the parameter is not present, logs an error and returns a `400 Bad Request` to the client
Get a route parameter If the parameter is not present logs an error and returns a ` 400 Bad Request ` to the client
pub fn param(&self, param: &str) -> Result<&str> {
        self.params.find(param).ok_or_else(|| {
            error!("parameter {} not found", param);
            Error::http(StatusCode::BAD_REQUEST)
        })
    }
pub fn param ( & self , param : & str ) -> Result < & str > { self . params . find ( param ) . ok_or_else ( | | { error ! ( " " param ) ; Error :: http ( StatusCode :: BAD_REQUEST ) } ) }
Get a route parameter (eg.
Get a route parameter ( eg .
&self
param
&str