// query
func Query(w http.ResponseWriter, r *http.Request) {
//模拟业务查询耗时0~1s
fmt.Println(w.WriteHeader)
time.Sleep(time.Duration(rand.Intn(1000)) * time.Millisecond)
_, _ = io.WriteString(w, "some results")
//如果想要获取状态吗,怎么写?
}
求救