Versions in this module Expand all Collapse all v1 v1.12.2 Dec 24, 2020 v1.12.1 Dec 8, 2020 Changes in this version + const PostSignal + const PreSignal + const StateInit + const StateRunning + const StateShuttingDown + const StateTerminate + var DefaultMaxHeaderBytes int + var DefaultReadTimeOut time.Duration + var DefaultTimeout = 60 * time.Second + var DefaultWriteTimeOut time.Duration + func ListenAndServe(addr string, handler http.Handler) error + func ListenAndServeTLS(addr string, certFile string, keyFile string, handler http.Handler) error + type Server struct + Network string + SignalHooks map[int]map[os.Signal][]func() + func NewServer(addr string, handler http.Handler) (srv *Server) + func (srv *Server) ListenAndServe() (err error) + func (srv *Server) ListenAndServeMutualTLS(certFile, keyFile, trustFile string) (err error) + func (srv *Server) ListenAndServeTLS(certFile, keyFile string) (err error) + func (srv *Server) RegisterSignalHook(ppFlag int, sig os.Signal, f func()) (err error) + func (srv *Server) Serve() (err error)