code: func (s *Service) handleLoad(w http.ResponseWriter, r *http.Request) {
  	timings, err := timings(r)
  	if err != nil {
  		http.Error(w, err.Error(), http.StatusInternalServerError)
  		return
  	}
  
  	b, err := ioutil.ReadAll(r.Body)
  	defer r.Body.Close()
  	if err != nil {
  		http.Error(w, err.Error(), http.StatusBadRequest)
  		return
  	}
  
  	var resp Response
  	queries := []string{string(b)}
  	results, err := s.store.ExecuteOrAbort(&store.ExecuteRequest{queries, timings, false})
  	if err != nil {
  		if err == store.ErrNotLeader {
  			leader := s.leaderAPIAddr()
  			if leader == "" {
  				http.Error(w, err.Error(), http.StatusServiceUnavailable)
  				return
  			}
  
  			redirect := s.FormRedirect(r, leader)
  			http.Redirect(w, r, redirect, http.StatusMovedPermanently)
  			return
  		}
  		resp.Error = err.Error()
  	} else {
  		resp.Results = results.Results
  		if timings {
  			resp.Time = results.Time
  		}
  		resp.Raft = &results.Raft
  	}
  	writeResponse(w, r, &resp)
  }
docs: // handleLoad loads the state contained in a .dump output.