MCPcopy
hub / github.com/cortesi/devd / ServeHTTP

Method ServeHTTP

fileserver/fileserver.go:242–244  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

240}
241
242func (fserver *FileServer) ServeHTTP(w http.ResponseWriter, r *http.Request) {
243 fserver.ServeHTTPContext(context.Background(), w, r)
244}
245
246// ServeHTTPContext is like ServeHTTP, but with added context
247func (fserver *FileServer) ServeHTTPContext(

Callers 2

_TestFileServerCleansFunction · 0.95
notFoundMethod · 0.45

Calls 1

ServeHTTPContextMethod · 0.95

Tested by 1

_TestFileServerCleansFunction · 0.76