[][src]Function malaga_http_utils::utils::get_method

pub fn get_method(method: Methods) -> String

Function to get and filter method

Example:

use malaga_http_utils::utils::*;
 
struct Verb {
    method: Methods,
}
 
fn main() {
    let verb = Verb { method: Methods::GET};
     
    let method = get_method(verb.method);
 
    assert_eq!(method, "GET");
}