| 363 | } |
| 364 | |
| 365 | static std::map<std::string, std::string> get_headers(const httplib::Request & req) { |
| 366 | std::map<std::string, std::string> headers; |
| 367 | for (const auto & [key, value] : req.headers) { |
| 368 | headers[key] = value; |
| 369 | } |
| 370 | return headers; |
| 371 | } |
| 372 | |
| 373 | static std::string build_query_string(const httplib::Request & req) { |
| 374 | std::string qs; |