code: func (s *HTTPServer) IntentionList(resp http.ResponseWriter, req *http.Request) (interface{}, error) {
  	// Method is tested in IntentionEndpoint
  
  	var args structs.DCSpecificRequest
  	if done := s.parse(resp, req, &args.Datacenter, &args.QueryOptions); done {
  		return nil, nil
  	}
  
  	var reply structs.IndexedIntentions
  	defer setMeta(resp, &reply.QueryMeta)
  	if err := s.agent.RPC("Intention.List", &args, &reply); err != nil {
  		return nil, err
  	}
  
  	return reply.Intentions, nil
  }
docs: // GET /v1/connect/intentions