(&mut self, url: &str, method: &str)
| 4 | |
| 5 | impl Server for Application { |
| 6 | fn handle_request(&mut self, url: &str, method: &str) -> (u16, String) { |
| 7 | if url == "/app/status" && method == "GET" { |
| 8 | return (200, "Ok".into()); |
| 9 | } |
| 10 | |
| 11 | if url == "/create/user" && method == "POST" { |
| 12 | return (201, "User Created".into()); |
| 13 | } |
| 14 | |
| 15 | (404, "Not Ok".into()) |
| 16 | } |
| 17 | } |
nothing calls this directly
no outgoing calls
no test coverage detected