Skip to content

handling of route #60

@craff

Description

@craff

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions