pub fn route(method: &[u8], path: &[u8], handler: Handler) -> Result<()>Expand description
Register a route handler.
method and path must be null-terminated byte strings
(e.g. b"GET\0", b"/api/leds\0").
ยงErrors
Returns an error if the route table is full.