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

Method getParameter

lib_acl_cpp/src/http/HttpServletRequest.cpp:471–498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

469}
470
471const char* HttpServletRequest::getParameter(const char* name,
472 bool case_sensitive /* = false */) const
473{
474 std::vector<HTTP_PARAM*>::const_iterator cit = params_.begin();
475 if (case_sensitive) {
476 for (; cit != params_.end(); ++cit) {
477 if (strcmp((*cit)->name, name) == 0) {
478 return (*cit)->value;
479 }
480 }
481 } else {
482 for (; cit != params_.end(); ++cit) {
483 if (strcasecmp((*cit)->name, name) == 0) {
484 return (*cit)->value;
485 }
486 }
487 }
488
489 // ����� MIME ��ʽ�����Դ� mime_ �����в�ѯ����
490 if (mime_ == NULL) {
491 return NULL;
492 }
493 const http_mime_node* node = mime_->get_node(name);
494 if (node == NULL) {
495 return NULL;
496 }
497 return node->get_value();
498}
499
500http_mime* HttpServletRequest::getHttpMime(void)
501{

Callers 15

doPostMethod · 0.80
doPostMethod · 0.80
doParamsMethod · 0.80
doUploadMethod · 0.80
doPostMethod · 0.80
doParamsMethod · 0.80
doUploadMethod · 0.80
doPostMethod · 0.80
doPostMethod · 0.80
doPostMethod · 0.80
doPostMethod · 0.80
do_removeFunction · 0.80

Calls 4

beginMethod · 0.80
endMethod · 0.45
get_nodeMethod · 0.45
get_valueMethod · 0.45

Tested by

no test coverage detected