pub fn handle_func<F>(pattern: &str, f: F)where F: Fn(&mut dyn ResponseWriter, &Request) + Send + Sync + 'static,
Register a function on the DefaultServeMux. Port of Go’s http.HandleFunc.
DefaultServeMux
http.HandleFunc