tiny_httpd
tiny_httpd copied to clipboard
handling of route
I have made several improvements (?) to route handling in simple_httpd you might want to use for tiny_httpd:
- [ ] I have fixed an order on route: more precise first (currently, it is reverse of the order of add_route)
- [ ] I dispatch using a tree for the method and the exact prefix of the route.
- [ ] if no method is specified, it means GET|POST|HEAD but not PUT and DELETE
- [ ] I removed the distinction between url_encode or not, I think it is simpler to always accept url_encoded path ?