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

Method getKeepAlive

lib_acl_cpp/src/http/HttpServletRequest.cpp:987–1001  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

985}
986
987int HttpServletRequest::getKeepAlive(void) const
988{
989 if (cgi_mode_) {
990 return -1;
991 }
992
993 if (client_ == NULL) {
994 return -1;
995 }
996 const char* ptr = client_->header_value("Keep-Alive");
997 if (ptr == NULL || *ptr == 0) {
998 return -1;
999 }
1000 return atoi(ptr);
1001}
1002
1003void HttpServletRequest::getAcceptEncoding(std::vector<string>& out) const
1004{

Callers

nothing calls this directly

Calls 1

header_valueMethod · 0.45

Tested by

no test coverage detected