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

Method getUserAgent

lib_acl_cpp/src/http/HttpServletRequest.cpp:960–969  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

958}
959
960const char* HttpServletRequest::getUserAgent(void) const
961{
962 if (cgi_mode_) {
963 return acl_getenv("HTTP_USER_AGENT");
964 }
965 if (client_ == NULL) {
966 return NULL;
967 }
968 return client_->header_value("User-Agent");
969}
970
971bool HttpServletRequest::isKeepAlive(void) const
972{

Callers

nothing calls this directly

Calls 2

acl_getenvFunction · 0.85
header_valueMethod · 0.45

Tested by

no test coverage detected