Description

Server wraps an http.Server with graceful connection handling. It may be used directly in the same way as http.Server, or may be constructed with the global functions in this package.

Example:

srv := &graceful.Server{
	Timeout: 5 * time.Second,
	Server: &http.Server{Addr: ":1234", Handler: handler},
}
srv.ListenAndServe()

Server is referenced in 27 repositories

github.com/tylerb/graceful github.com/mistifyio/lochness github.com/remerge/rex

...