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

Method http_request

lib_acl_cpp/src/http/http_request.cpp:31–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29} while(0)
30
31http_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
56http_request::http_request(const char* addr, int conn_timeout /* = 60 */,
57 int rw_timeout /* = 60 */, bool unzip /* = true */)

Callers

nothing calls this directly

Calls 11

strncasecmpFunction · 0.85
safe_snprintfFunction · 0.85
acl_valid_unixFunction · 0.85
set_keep_aliveMethod · 0.80
http_clientClass · 0.50
set_timeoutFunction · 0.50
get_vstreamMethod · 0.45
get_peerMethod · 0.45
parseMethod · 0.45
get_domainMethod · 0.45
get_portMethod · 0.45

Tested by

no test coverage detected