Skip to content

handling of route #60

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 ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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