func (s *analysisServer) ServeHTTP(w http.ResponseWriter, r *http.Request) { log.Printf("Trace starting analysisServer processing for: %s", r.Method) defer log.Printf("Trace finished analysisServer processing for: %s", r.Method) switch r.Method { case "GET": analyzer.UploadHandler(w, r) case "POST": r.ParseForm() analyzer.HTTPAnalyzeHandler(w, r) default: http.Error(w, fmt.Sprintf("Method %s not allowed", r.Method), http.StatusMethodNotAllowed) } }
func (*analysisServer) ServeHTTP(w http.ResponseWriter, r *http.Request) { log.Printf("Starting processing for: %s", r.Method) analyzer.UploadHandler(w, r) }