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

Function http_hdr_req_param

lib_protocol/src/http/http_hdr_req.c:974–987  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

972/* ��ȡ����URL��ij�������ֶε�����, ��ȡ: /cgi-bin/n1=v1&n2=v2 �е� n2��ֵv2 */
973
974const char *http_hdr_req_param(const HTTP_HDR_REQ *hh, const char *name)
975{
976 if (hh == NULL || name == NULL) {
977 acl_msg_error("%s, %s(%d): input invalid",
978 __FILE__, __FUNCTION__, __LINE__);
979 return NULL;
980 }
981
982 if (hh->params_table == NULL) {
983 return NULL;
984 }
985
986 return acl_htable_find(hh->params_table, name);
987}
988
989const char *http_hdr_req_url_part(const HTTP_HDR_REQ *hh)
990{

Callers 4

http_serviceFunction · 0.85
http_serviceFunction · 0.85
request_paramMethod · 0.85
handleMethod · 0.85

Calls 2

acl_msg_errorFunction · 0.85
acl_htable_findFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…