| 124 | } |
| 125 | |
| 126 | void http_request::reset() |
| 127 | { |
| 128 | if (cookies_) { |
| 129 | std::vector<HttpCookie*>::iterator it = cookies_->begin(); |
| 130 | for (; it != cookies_->end(); ++it) { |
| 131 | (*it)->destroy(); |
| 132 | } |
| 133 | cookies_->clear(); |
| 134 | cookie_inited_ = false; |
| 135 | } |
| 136 | |
| 137 | delete conv_; |
| 138 | conv_ = NULL; |
| 139 | need_retry_ = true; |
| 140 | RESET_RANGE(); |
| 141 | if (client_) { |
| 142 | client_->reset(); |
| 143 | } |
| 144 | header_.reset(); |
| 145 | } |
| 146 | |
| 147 | http_request& http_request::set_unzip(bool on) |
| 148 | { |
no test coverage detected