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

Method isKeepAlive

lib_acl_cpp/src/http/HttpServletRequest.cpp:971–985  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

969}
970
971bool HttpServletRequest::isKeepAlive(void) const
972{
973 if (cgi_mode_) {
974 const char* ptr = acl_getenv("HTTP_CONNECTION");
975 if (ptr == NULL || strcasecmp(ptr, "keep-alive") != 0) {
976 return false;
977 } else {
978 return true;
979 }
980 }
981 if (client_ == NULL) {
982 return false;
983 }
984 return client_->keep_alive();
985}
986
987int HttpServletRequest::getKeepAlive(void) const
988{

Callers 15

doServiceMethod · 0.80
doPostMethod · 0.80
doPostMethod · 0.80
doPostMethod · 0.80
doPostMethod · 0.80
startMethod · 0.80
doRunMethod · 0.80
http_not_foundFunction · 0.80
doServiceMethod · 0.80
doGetMethod · 0.80
doPostMethod · 0.80
doReplyMethod · 0.80

Calls 2

acl_getenvFunction · 0.85
keep_aliveMethod · 0.45

Tested by

no test coverage detected