Lines Matching refs:http
13 "net/http"
14 _ "net/http/pprof"
32 http.HandleFunc("/", mgr.httpSummary)
33 http.HandleFunc("/syscalls", mgr.httpSyscalls)
34 http.HandleFunc("/corpus", mgr.httpCorpus)
35 http.HandleFunc("/crash", mgr.httpCrash)
36 http.HandleFunc("/cover", mgr.httpCover)
37 http.HandleFunc("/prio", mgr.httpPrio)
38 http.HandleFunc("/file", mgr.httpFile)
39 http.HandleFunc("/report", mgr.httpReport)
40 http.HandleFunc("/rawcover", mgr.httpRawCover)
42 http.HandleFunc("/favicon.ico", func(w http.ResponseWriter, r *http.Request) {})
44 ln, err := net.Listen("tcp4", mgr.cfg.HTTP)
46 log.Fatalf("failed to listen on %v: %v", mgr.cfg.HTTP, err)
48 log.Logf(0, "serving http on http://%v", ln.Addr())
50 err := http.Serve(ln, nil)
51 log.Fatalf("failed to serve http: %v", err)
55 func (mgr *Manager) httpSummary(w http.ResponseWriter, r *http.Request) {
64 http.Error(w, fmt.Sprintf("failed to collect crashes: %v", err), http.StatusInternalServerError)
69 http.Error(w, fmt.Sprintf("failed to execute template: %v", err),
70 http.StatusInternalServerError)
75 func (mgr *Manager) httpSyscalls(w http.ResponseWriter, r *http.Request) {
89 http.Error(w, fmt.Sprintf("failed to execute template: %v", err),
90 http.StatusInternalServerError)
165 func (mgr *Manager) httpCrash(w http.ResponseWriter, r *http.Request) {
169 http.Error(w, fmt.Sprintf("failed to read crash info"), http.StatusInternalServerError)
173 http.Error(w, fmt.Sprintf("failed to execute template: %v", err), http.StatusInternalServerError)
178 func (mgr *Manager) httpCorpus(w http.ResponseWriter, r *http.Request) {
190 http.Error(w, fmt.Sprintf("failed to deserialize program: %v", err), http.StatusInternalServerError)
203 http.Error(w, fmt.Sprintf("failed to execute template: %v", err), http.StatusInternalServerError)
208 func (mgr *Manager) httpCover(w http.ResponseWriter, r *http.Request) {
213 http.Error(w, fmt.Sprintf("machine is not checked yet"), http.StatusInternalServerError)
223 func (mgr *Manager) httpCoverCover(w http.ResponseWriter, r *http.Request) {
225 http.Error(w, fmt.Sprintf("no kernel_obj in config file"), http.StatusInternalServerError)
241 http.Error(w, fmt.Sprintf("failed to generate coverage profile: %v", err), http.StatusInternalServerError)
247 func (mgr *Manager) httpCoverFallback(w http.ResponseWriter, r *http.Request) {
273 http.Error(w, fmt.Sprintf("failed to execute template: %v", err), http.StatusInternalServerError)
278 func (mgr *Manager) httpPrio(w http.ResponseWriter, r *http.Request) {
292 http.Error(w, fmt.Sprintf("unknown call: %v", call), http.StatusInternalServerError)
303 http.Error(w, fmt.Sprintf("failed to execute template: %v", err), http.StatusInternalServerError)
308 func (mgr *Manager) httpFile(w http.ResponseWriter, r *http.Request) {
311 http.Error(w, "oh, oh, oh!", http.StatusInternalServerError)
317 http.Error(w, "failed to open the file", http.StatusInternalServerError)
325 func (mgr *Manager) httpReport(w http.ResponseWriter, r *http.Request) {
332 http.Error(w, "failed to read description file", http.StatusInternalServerError)
358 func (mgr *Manager) httpRawCover(w http.ResponseWriter, r *http.Request) {
364 http.Error(w, initCoverError.Error(), http.StatusInternalServerError)