Tags: icattlecoder/mux
Tags
host:port matching does not require a :port to be specified. In lieu of checking the template pattern on every Match request, a bool is added to the routeRegexp, and set if the routeRegexp is a host AND there is no ":" in the template. I dislike extending the type, but I'd dislike doing a string match on every single Match, even more.
[docs] Improve docstrings for middleware, skipclean (gorilla#375)
[feat] Add middleware support as discussed in gorilla#293 (gorilla#294) * mux.Router now has a `Use` method that allows you to add middleware to request processing.
MatchErr is set to ErrNotFound if NotFoundHandler is used (gorilla#311)
Support building URLs with non-http schemes. (gorilla#260) * Move misplaced tests and fix comments. * Support building URLs with non-http schemes. - Capture first scheme configured for a route for use when building URLs. - Add new Route.URLScheme method similar to URLHost and URLPath. - Update Route.URLHost and Route.URL to use the captured scheme if present. * Remove Route.URLScheme method. * Remove UTF-8 BOM.
[bugfix] fail fast if regex is incorrectly specified using capturing … …groups. (gorilla#218)
PreviousNext