Skip to content

Glossary: Go Beyond the Basics

http.Server

Also written: ListenAndServe, ReadTimeout, WriteTimeout, IdleTimeout

A struct that configures a web server, with an address and timeouts for reading the request, writing the response and idle connections. A slow client can't hold a connection forever.

Where the book teaches it

Related terms

timeoutsrv.Shutdown