package web import ( "net/http" "time" ) func Server(h http.Handler) *http.Server { return &http.Server{ Handler: h, ReadHeaderTimeout: 5 * time.Second, ReadTimeout: 30 * time.Second, WriteTimeout: 60 * time.Second, IdleTimeout: 120 * time.Second, MaxHeaderBytes: http.DefaultMaxHeaderBytes, } }