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

Method getMethod

lib_acl_cpp/src/http/HttpServletRequest.cpp:81–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81http_method_t HttpServletRequest::getMethod(string* method_s /* = NULL */) const
82{
83 // HttpServlet ������ doRun ����ʱ readHeader �����ȱ����ã�
84 // �� HttpSevlet ���ڳ�ʼ������ʱ�϶������ getMethod ������
85 // �����ڴ˺����д��� readHeader �����ȽϺã�����һ�������
86 // �� readHeader ������������������û�����ã���һ���棬��
87 // �ܱ�֤ readHeader �϶��ᱻ���ã�ͬʱ�ֲ��ذ� HttpServlet
88 // �������������Ԫ��
89
90 if (!readHeaderCalled_) {
91 const_cast<HttpServletRequest*>(this)->readHeader(method_s);
92 } else if (method_s) {
93 methodString(method_, *method_s);
94 }
95 return method_;
96}
97
98http_method_t HttpServletRequest::getRequestMethod(string* method_s) const
99{

Callers 4

startMethod · 0.80
http_get_defaultFunction · 0.80
http_get_defaultFunction · 0.80
http_get_defaultFunction · 0.80

Calls 1

readHeaderMethod · 0.80

Tested by

no test coverage detected