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

Method add_cookie

lib_acl_cpp/src/http/HttpServletRequest.cpp:108–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108void HttpServletRequest::add_cookie(char* data)
109{
110 SKIP_SPACE(data);
111 if (*data == 0 || *data == '=') {
112 return;
113 }
114 char* ptr = strchr(data, '=');
115 if (ptr == NULL) {
116 return;
117 }
118 *ptr++ = 0;
119 SKIP_SPACE(ptr)
120 if (*ptr == 0) {
121 return;
122 }
123 char* end = ptr + strlen(ptr) - 1;
124 while (end > ptr && (*end == ' ' || *end == '\t')) {
125 *end-- = 0;
126 }
127 setCookie(data, ptr);
128}
129
130void HttpServletRequest::setCookie(const char* name, const char* value)
131{

Callers 4

OnBnClickedDownloadMethod · 0.80
mainFunction · 0.80
acl_foreachFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected