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

Method doUpload

app/wizard_demo/httpd_upload/http_servlet.cpp:192–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192bool http_servlet::doUpload(request_t& req, response_t& res)
193{
194 // ��δ����������ʱ����Ҫ�첽�� HTTP ����������
195 if (content_length_ > read_length_) {
196 if (!upload(req, res)) {
197 return false;
198 }
199 }
200
201 // ��û�ж����ϴ������ݣ���Ҫ���أ��첽�ȴ��ɶ�
202 if (content_length_ > read_length_) {
203 return true;
204 }
205
206 // ���Ѿ����� HTTP ����������ʱ����ʼ�����ϴ�������
207 bool ret = parse(req, res);
208
209 // ������ϣ������� HTTP �Ự״̬���Ա��ڴ�����һ�� HTTP ����
210 reset();
211 acl::meter_time(__FUNCTION__, __LINE__, "end");
212 return ret;
213}
214
215#if 0
216

Callers

nothing calls this directly

Calls 3

meter_timeFunction · 0.85
uploadClass · 0.50
parseFunction · 0.50

Tested by

no test coverage detected