| 177 | } |
| 178 | |
| 179 | static bool CheckWarmup(HTTPRequest* req) |
| 180 | { |
| 181 | std::string statusmessage; |
| 182 | if (RPCIsInWarmup(&statusmessage)) |
| 183 | return RESTERR(req, HTTP_SERVICE_UNAVAILABLE, "Service temporarily unavailable: " + statusmessage); |
| 184 | return true; |
| 185 | } |
| 186 | |
| 187 | static bool rest_headers(const std::any& context, |
| 188 | HTTPRequest* req, |
no test coverage detected