| 6999 | } |
| 7000 | |
| 7001 | inline bool Server::dispatch_request_for_content_reader( |
| 7002 | Request &req, Response &res, ContentReader content_reader, |
| 7003 | const HandlersForContentReader &handlers) const { |
| 7004 | for (const auto &x : handlers) { |
| 7005 | const auto &matcher = x.first; |
| 7006 | const auto &handler = x.second; |
| 7007 | |
| 7008 | if (matcher->match(req)) { |
| 7009 | handler(req, res, content_reader); |
| 7010 | return true; |
| 7011 | } |
| 7012 | } |
| 7013 | return false; |
| 7014 | } |
| 7015 | |
| 7016 | inline bool |
| 7017 | Server::process_request(Stream &strm, const std::string &remote_addr, |