1 repository
Routing structures partitioned by HTTP method to optimize path traversal.
Distinct from HTTP Methods: Focuses on the internal architectural partitioning of trees by method, rather than declarative method annotations.
Explore 1 awesome GitHub repository matching web development · Method-Specific Trees. Refine with filters or upvote what's useful.
httprouter is a high-performance HTTP request router for Go that maps incoming network requests to specific handler functions using a radix tree. It functions as a request dispatcher and path parameter parser, organizing URL paths in a tree structure to ensure efficient lookups. The router specializes in capturing dynamic segments and catch-all wildcards from URL paths to pass directly into request handlers. It implements method-specific routing and automatically manages responses for unsupported HTTP methods. The library covers broader capabilities including request normalization through tr
Implements separate routing trees for each HTTP method to avoid unnecessary checks during path traversal.