code: func (s *HTTPServer) preparedQueryList(resp http.ResponseWriter, req *http.Request) (interface{}, error) {
  	var args structs.DCSpecificRequest
  	if done := s.parse(resp, req, &args.Datacenter, &args.QueryOptions); done {
  		return nil, nil
  	}
  
  	var reply structs.IndexedPreparedQueries
  	defer setMeta(resp, &reply.QueryMeta)
  RETRY_ONCE:
  	if err := s.agent.RPC("PreparedQuery.List", &args, &reply); err != nil {
  		return nil, err
  	}
  	if args.QueryOptions.AllowStale && args.MaxStaleDuration > 0 && args.MaxStaleDuration < reply.LastContact {
  		args.AllowStale = false
  		args.MaxStaleDuration = 0
  		goto RETRY_ONCE
  	}
  	reply.ConsistencyLevel = args.QueryOptions.ConsistencyLevel()
  
  	// Use empty list instead of nil.
  	if reply.Queries == nil {
  		reply.Queries = make(structs.PreparedQueries, 0)
  	}
  	return reply.Queries, nil
  }
docs: // preparedQueryList returns all the prepared queries.