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

Method read_header

lib_acl_cpp/src/http/http_response.cpp:50–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50bool http_response::read_header()
51{
52 if (client_) {
53 // �ڶ� HTTP ����ͷʱ���˱�־���ã��Ա����ڳ����ӵ���Ӧ
54 // �����п����ظ���Ӧ HTTP ͷ
55 head_sent_ = false;
56 client_->reset();
57 header_.reset();
58 header_.set_request_mode(false);
59 } else {
60 logger_error("client_ not opened");
61 header_ok_ = false;
62 return false;
63 }
64
65 // ��ȡ�ͻ��˵�����ͷ�����з���
66
67 if (!client_->read_head()) {
68 close();
69 header_ok_ = false;
70 return false;
71 }
72 header_ok_ = true;
73 return true;
74}
75
76http_pipe* http_response::get_pipe(const char* to_charset)
77{

Callers

nothing calls this directly

Calls 3

read_headMethod · 0.80
closeFunction · 0.50
resetMethod · 0.45

Tested by

no test coverage detected