Documentation
¶
Index ¶
Constants ¶
View Source
const ( DEFAULT_READ_TIMEOUT = 60 * time.Second DEFAULT_WRITE_TIMEOUT = DEFAULT_READ_TIMEOUT )
View Source
const ( GRACEFUL_ENVIRON_KEY = "IS_GRACEFUL" GRACEFUL_ENVIRON_STRING = GRACEFUL_ENVIRON_KEY + "=1" GRACEFUL_LISTENER_FD = 3 )
Variables ¶
This section is empty.
Functions ¶
func ListenAndServe ¶
refer http.ListenAndServe
Types ¶
type Server ¶
HTTP server that supported graceful shutdown or restart
func (*Server) ListenAndServe ¶
func (*Server) ListenAndServeTLS ¶
Click to show internal directories.
Click to hide internal directories.