MCPcopy Index your code
hub / github.com/subtrace/subtrace / ServeHTTP

Method ServeHTTP

devtools/devtools.go:206–212  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

204}
205
206func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
207 if r.Header.Get("upgrade") == "websocket" {
208 s.websocket(w, r)
209 } else {
210 s.html(w, r)
211 }
212}
213
214func (s *Server) HandleHijack(req *http.Request, conn net.Conn, brw *bufio.ReadWriter) {
215 defer conn.Close()

Callers 1

HandleHijackMethod · 0.95

Calls 3

websocketMethod · 0.95
htmlMethod · 0.95
GetMethod · 0.45

Tested by

no test coverage detected