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

Method host_get

include/proxy/hdrs/HTTP.h:777–792  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

775 -------------------------------------------------------------------------*/
776
777inline const char *
778HTTPHdr::host_get(int *length) const
779{
780 this->_test_and_fill_target_cache();
781 if (m_target_in_url) {
782 return url_get()->host_get(length);
783 } else if (m_host_mime) {
784 if (length)
785 *length = m_host_length;
786 return m_host_mime->m_ptr_value;
787 }
788
789 if (length)
790 *length = 0;
791 return nullptr;
792}
793
794/*-------------------------------------------------------------------------
795 -------------------------------------------------------------------------*/

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected