MCPcopy Create free account
hub / github.com/apache/trafficserver / keep_alive_get

Method keep_alive_get

include/proxy/hdrs/HTTP.h:900–912  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

898}
899
900inline HTTPKeepAlive
901HTTPHdr::keep_alive_get() const
902{
903 HTTPKeepAlive retval = HTTP_NO_KEEPALIVE;
904 const MIMEField *pc = this->field_find(MIME_FIELD_PROXY_CONNECTION, MIME_LEN_PROXY_CONNECTION);
905 if (pc != nullptr) {
906 retval = is_header_keep_alive(this->version_get(), pc);
907 } else {
908 const MIMEField *c = this->field_find(MIME_FIELD_CONNECTION, MIME_LEN_CONNECTION);
909 retval = is_header_keep_alive(this->version_get(), c);
910 }
911 return retval;
912}
913
914inline bool
915HTTPHdr::is_keep_alive_set() const

Calls 3

version_getMethod · 0.95
is_header_keep_aliveFunction · 0.85
field_findMethod · 0.80

Tested by

no test coverage detected