@@ -83,7 +83,7 @@ class webserver::http_endpoint
8383 * Method used to get the complete endpoint url
8484 * @return a string representing the url
8585 **/
86- const std::string get_url_complete () const
86+ const std::string& get_url_complete () const
8787 {
8888 return this ->url_complete ;
8989 }
@@ -92,7 +92,7 @@ class webserver::http_endpoint
9292 * Method used to get all pars defined inside an url.
9393 * @return a vector of strings representing all found pars.
9494 **/
95- const std::vector<std::string> get_url_pars () const
95+ const std::vector<std::string>& get_url_pars () const
9696 {
9797 return this ->url_pars ;
9898 }
@@ -101,7 +101,7 @@ class webserver::http_endpoint
101101 * Method used to get all pieces of an url; considering an url splitted by '/'.
102102 * @return a vector of strings representing all found pieces.
103103 **/
104- const std::vector<std::string> get_url_pieces () const
104+ const std::vector<std::string>& get_url_pieces () const
105105 {
106106 return this ->url_pieces ;
107107 }
@@ -110,7 +110,7 @@ class webserver::http_endpoint
110110 * Method used to get indexes of all parameters inside url
111111 * @return a vector of int indicating all positions.
112112 **/
113- const std::vector<int > get_chunk_positions () const
113+ const std::vector<int >& get_chunk_positions () const
114114 {
115115 return this ->chunk_positions ;
116116 }
0 commit comments