| 775 | -------------------------------------------------------------------------*/ |
| 776 | |
| 777 | inline const char * |
| 778 | HTTPHdr::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 | -------------------------------------------------------------------------*/ |
nothing calls this directly
no test coverage detected