Added config options for http request timeouts

This commit is contained in:
2025-02-12 12:48:10 +11:00
parent e605e6437b
commit 1253c6499d
8 changed files with 91 additions and 4 deletions

View File

@@ -32,5 +32,8 @@ func NewServer(
// Serve the favicon and exluded files before any middleware is added
handler = middleware.ExcludedFiles(handler)
handler = middleware.Favicon(handler)
// Start the timer for the request chain so logger can have accurate info
handler = middleware.StartTimer(handler)
return handler
}