| 499 | } |
| 500 | |
| 501 | void JSONRequest::PollStart() { |
| 502 | // send an empty space to the client to ensure that it's still alive. |
| 503 | assert(!isLongPolling); |
| 504 | req->WriteHeader("Content-Type", "application/json"); |
| 505 | req->WriteHeader("Connection", "close"); |
| 506 | req->Chunk(std::string(" ")); |
| 507 | isLongPolling = true; |
| 508 | } |
| 509 | |
| 510 | void JSONRequest::PollPing() { |
| 511 | assert(isLongPolling); |
nothing calls this directly
no test coverage detected