| 4793 | } |
| 4794 | |
| 4795 | inline std::string append_query_params(const std::string &path, |
| 4796 | const Params ¶ms) { |
| 4797 | std::string path_with_query = path; |
| 4798 | const static std::regex re("[^?]+\\?.*"); |
| 4799 | auto delm = std::regex_match(path, re) ? '&' : '?'; |
| 4800 | path_with_query += delm + detail::params_to_query_str(params); |
| 4801 | return path_with_query; |
| 4802 | } |
| 4803 | |
| 4804 | // Header utilities |
| 4805 | inline std::pair<std::string, std::string> make_range_header(Ranges ranges) { |
no test coverage detected