| 340 | } |
| 341 | |
| 342 | void server_http_context::stop() const { |
| 343 | if (pimpl->srv) { |
| 344 | pimpl->srv->stop(); |
| 345 | } |
| 346 | } |
| 347 | |
| 348 | static void set_headers(httplib::Response & res, const std::map<std::string, std::string> & headers) { |
| 349 | for (const auto & [key, value] : headers) { |