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

Method getPathInfo

lib_acl_cpp/src/http/HttpServletRequest.cpp:234–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234const char* HttpServletRequest::getPathInfo(void) const
235{
236 if (cgi_mode_) {
237 const char* ptr = acl_getenv("SCRIPT_NAME");
238 if (ptr != NULL) {
239 return ptr;
240 }
241 ptr = acl_getenv("PATH_INFO");
242 return ptr ? ptr : "";
243 }
244 if (client_ == NULL) {
245 return "";
246 }
247 const char* ptr = client_->request_path();
248 return ptr ? ptr : "";
249}
250
251const char* HttpServletRequest::getRequestUri(void) const
252{

Callers 11

doServiceMethod · 0.80
doServiceMethod · 0.80
doPostMethod · 0.80
doPostMethod · 0.80
doServiceMethod · 0.80
doServiceMethod · 0.80
doGetMethod · 0.80
doPostMethod · 0.80
doPostMethod · 0.80
doPostMethod · 0.80
doServiceMethod · 0.80

Calls 2

acl_getenvFunction · 0.85
request_pathMethod · 0.80

Tested by

no test coverage detected