MCPcopy
hub / github.com/bettercap/bettercap / Start

Method Start

modules/http_proxy/http_proxy.go:131–139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

129}
130
131func (mod *HttpProxy) Start() error {
132 if err := mod.Configure(); err != nil {
133 return err
134 }
135
136 return mod.SetRunning(true, func() {
137 mod.proxy.Start()
138 })
139}
140
141func (mod *HttpProxy) Stop() error {
142 mod.State.Store("stripper", nil)

Callers 3

NewHttpProxyFunction · 0.95
TestHttpProxyStartStopFunction · 0.95

Calls 3

ConfigureMethod · 0.95
SetRunningMethod · 0.80
StartMethod · 0.65

Tested by 2

TestHttpProxyStartStopFunction · 0.76