Skip to content

Glossary: Go Beyond the Basics

srv.Shutdown

Also written: Shutdown

Stops an `http.Server` cleanly: it takes no new connections and waits for running requests to finish, within the context's time limit.

Where the book teaches it

Related terms

http.ErrServerClosedsignal.NotifyContext