check / check (push) Waiting to run
Neither Server embeds *http.Server any more. Each holds it as a private field, is its handler, and has Serve, Shutdown, Close and ServeHTTP. sww's serve hook takes the new daemonServer interface of those first three, and fx provides each Server as it. Model: opus-5-5
12 lines
276 B
Go
12 lines
276 B
Go
package waf
|
|
|
|
import "net/http"
|
|
|
|
// BesideLookupTimeLimit is besideLookupTimeLimit.
|
|
const BesideLookupTimeLimit = besideLookupTimeLimit
|
|
|
|
// HTTPServer is Go's server s holds, for tests that read its settings.
|
|
func (s *Server) HTTPServer() *http.Server {
|
|
return s.httpServer
|
|
}
|