| 30 | } |
| 31 | |
| 32 | void http_client::reset(void) |
| 33 | { |
| 34 | if (req_) { |
| 35 | http_req_free(req_); |
| 36 | req_ = NULL; |
| 37 | } else if (hdr_req_) |
| 38 | http_hdr_req_free(hdr_req_); |
| 39 | |
| 40 | hdr_req_ = http_hdr_req_new(); |
| 41 | json_.reset(); |
| 42 | } |
| 43 | |
| 44 | void http_client::wait(void) |
| 45 | { |
no test coverage detected