| 170 | } |
| 171 | |
| 172 | static bool CheckWarmup(HTTPRequest* req) |
| 173 | { |
| 174 | std::string statusmessage; |
| 175 | if (RPCIsInWarmup(&statusmessage)) |
| 176 | return RESTERR(req, HTTP_SERVICE_UNAVAILABLE, "Service temporarily unavailable: " + statusmessage); |
| 177 | return true; |
| 178 | } |
| 179 | |
| 180 | static bool rest_headers(const std::any& context, |
| 181 | HTTPRequest* req, |
no test coverage detected