| 29 | } while(0) |
| 30 | |
| 31 | http_request::http_request(socket_stream* client, int conn_timeout /* = 60 */, |
| 32 | bool unzip /* = true */, bool stream_fixed /* = false */) |
| 33 | { |
| 34 | // ���ý�ѹ���� |
| 35 | client_ = NEW http_client(client, true, unzip, stream_fixed); |
| 36 | |
| 37 | unzip_ = unzip; |
| 38 | ssl_conf_ = NULL; |
| 39 | local_charset_[0] = 0; |
| 40 | conv_ = NULL; |
| 41 | |
| 42 | set_timeout(client->get_vstream()->rw_timeout, conn_timeout); |
| 43 | |
| 44 | const char* ptr = client->get_peer(true); |
| 45 | acl_assert(ptr); |
| 46 | ACL_SAFE_STRNCPY(addr_, ptr, sizeof(addr_)); |
| 47 | header_.set_url("/"); |
| 48 | header_.set_keep_alive(true); |
| 49 | header_.set_host(addr_); |
| 50 | cookie_inited_ = false; |
| 51 | cookies_ = NULL; |
| 52 | need_retry_ = true; |
| 53 | RESET_RANGE(); |
| 54 | } |
| 55 | |
| 56 | http_request::http_request(const char* addr, int conn_timeout /* = 60 */, |
| 57 | int rw_timeout /* = 60 */, bool unzip /* = true */) |
nothing calls this directly
no test coverage detected