| 29 | namespace |
| 30 | { |
| 31 | inline std::string HeaderOrEmpty(const Request &req, bhttp::field f) |
| 32 | { |
| 33 | const auto it = req.find(f); |
| 34 | if (it == req.end()) |
| 35 | return {}; |
| 36 | return std::string(it->value()); |
| 37 | } |
| 38 | |
| 39 | void SendResponse(ServiceHandler::ResultT &result, |
| 40 | Response ¤t_reply, |