| 6435 | } |
| 6436 | |
| 6437 | inline bool Server::dispatch_request_for_content_reader( |
| 6438 | Request &req, Response &res, ContentReader content_reader, |
| 6439 | const HandlersForContentReader &handlers) { |
| 6440 | for (const auto &x : handlers) { |
| 6441 | const auto &matcher = x.first; |
| 6442 | const auto &handler = x.second; |
| 6443 | |
| 6444 | if (matcher->match(req)) { |
| 6445 | handler(req, res, content_reader); |
| 6446 | return true; |
| 6447 | } |
| 6448 | } |
| 6449 | return false; |
| 6450 | } |
| 6451 | |
| 6452 | inline bool |
| 6453 | Server::process_request(Stream &strm, bool close_connection, |