MCPcopy Create free account
hub / github.com/acl-dev/acl / reset

Method reset

lib_acl_cpp/src/http/http_request.cpp:126–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126void 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
147http_request& http_request::set_unzip(bool on)
148{

Callers 6

try_openMethod · 0.45
write_headMethod · 0.45
send_requestMethod · 0.45
requestMethod · 0.45
uploadMethod · 0.45
send_fileMethod · 0.45

Calls 4

beginMethod · 0.80
endMethod · 0.45
destroyMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected