MCPcopy
hub / github.com/air-verse/air / Run

Method Run

runner/proxy.go:67–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65}
66
67func (p *Proxy) Run() {
68 http.HandleFunc("/", p.proxyHandler)
69 http.HandleFunc("/__air_internal/sse", p.reloadHandler)
70 http.HandleFunc("GET /__air_internal/worker.js", p.workerScriptHandler)
71 if err := p.server.ListenAndServe(); err != nil && err != http.ErrServerClosed {
72 log.Fatal(p.Stop())
73 }
74}
75
76func (p *Proxy) Reload() {
77 p.stream.Reload()

Callers 15

TestProxy_runFunction · 0.95
mainFunction · 0.45
TestDefaultPathConfigFunction · 0.45
TestColorModeFunction · 0.45
TestIsHiddenDirectoryFunction · 0.45
TestCleanPathFunction · 0.45
TestFileChecksumFunction · 0.45
TestFormatPathFunction · 0.45

Calls 1

StopMethod · 0.95

Tested by 15

TestProxy_runFunction · 0.76
TestDefaultPathConfigFunction · 0.36
TestColorModeFunction · 0.36
TestIsHiddenDirectoryFunction · 0.36
TestCleanPathFunction · 0.36
TestFileChecksumFunction · 0.36
TestFormatPathFunction · 0.36
TestIsDangerousRootFunction · 0.36