MCPcopy
hub / github.com/bettercap/bettercap / Stop

Method Stop

modules/http_server/http_server.go:122–128  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

120}
121
122func (mod *HttpServer) Stop() error {
123 return mod.SetRunning(false, func() {
124 ctx, cancel := context.WithTimeout(context.Background(), 60*time.Second)
125 defer cancel()
126 mod.server.Shutdown(ctx)
127 })
128}

Callers 2

NewHttpServerFunction · 0.95
StartMethod · 0.95

Calls 2

SetRunningMethod · 0.80
ShutdownMethod · 0.80

Tested by

no test coverage detected