| 985 | } |
| 986 | |
| 987 | int 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 | |
| 1003 | void HttpServletRequest::getAcceptEncoding(std::vector<string>& out) const |
| 1004 | { |
nothing calls this directly
no test coverage detected