code: func (h *FluxHandler) postQueryAnalyze(w http.ResponseWriter, r *http.Request) {
  	ctx := r.Context()
  
  	var req QueryRequest
  	if err := json.NewDecoder(r.Body).Decode(&req); err != nil {
  		EncodeError(ctx, errors.MalformedDataf("invalid json: %v", err), w)
  		return
  	}
  
  	a, err := req.Analyze()
  	if err != nil {
  		EncodeError(ctx, err, w)
  		return
  	}
  	if err := encodeResponse(ctx, w, http.StatusOK, a); err != nil {
  		logEncodingError(h.Logger, r, err)
  		return
  	}
  }
docs: // postQueryAnalyze parses a query and returns any query errors.