Skip to content

Quality of life improvements

Choose a tag to compare

@gebes gebes released this 16 Apr 18:40
· 71 commits to main since this release

Changes to the router configuration

Route not found handler

Override the RouteNotFoundHandler to change default behavior.

//RouterConfiguration is a straightforward place to override default behavior of the router
type RouterConfiguration struct {
	//RouteNotFoundHandler gets invoked, when the specified URL and method have no handlers
	RouteNotFoundHandler Endpoint
}

http.Server

On the router you now got direct access to the http.Server

err := router.Server.Shutdown(context.Background())