tiny_httpd icon indicating copy to clipboard operation
tiny_httpd copied to clipboard

handling of route

Open craff opened this issue 2 years ago • 11 comments

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 ?

craff avatar Feb 09 '23 18:02 craff