override
| 14 | |
| 15 | // override |
| 16 | bool doPost(acl::HttpServletRequest& req, acl::HttpServletResponse& res) { |
| 17 | static int __n = 0; |
| 18 | |
| 19 | acl::string buf; |
| 20 | buf.format("hello world, i=%d, n=%d", i_++, __n++); |
| 21 | |
| 22 | res.setContentLength(buf.size()); |
| 23 | res.setKeepAlive(req.isKeepAlive()); |
| 24 | |
| 25 | // ���� http ��Ӧ�� |
| 26 | return res.write(buf) && res.write(NULL, 0); |
| 27 | } |
| 28 | |
| 29 | private: |
| 30 | int i_; |
nothing calls this directly
no test coverage detected