| 262 | virtual ~HttpSocket(); |
| 263 | |
| 264 | virtual bool HasPendingTask() const |
| 265 | { |
| 266 | return ExpectMoreData() || _requestQ.size(); |
| 267 | } |
| 268 | |
| 269 | void SetKeepAlive(unsigned int secs) { _keep_alive = secs; } |
| 270 | void SetUserAgent(const std::string &s) { _user_agent = s; } |