httpr ver. 0.3.0 Stable
2023-08-11 18:59:00 +04:00| 13 commits to master since this release
Implemented a Sub-path functionality. Use Router's
Sub()method to create a sub-path, e.g.
Sub("/api/v1")and then you can call
Handler()method of a subPath struct to specify routes. E.g. for
s := r.Sub("/api/v1")call
s.Handler("/")to set a handler for
httpr ver. 0.2.1 Stable
2023-07-23 23:34:00 +04:00| 18 commits to master since this release
Sanitise double slashes (//) in a path.
Return nil if a path continues but a node has no children. This prevents returning a last handler exists in a passed path and now it will fail with 404 as it should be.
httpr ver. 0.2.0 Stable
2023-05-28 04:10:55 +04:00| 21 commits to master since this release
The most noticable change is that get() and add() methods of node type were rewritten in an iterative manner instead of recursive.
Overall cleanup was made.