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

Method get_scheme

src/proxy/hdrs/URL.cc:713–723  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

711 -------------------------------------------------------------------------*/
712
713const char *
714URLImpl::get_scheme(int *length)
715{
716 if (this->m_scheme_wks_idx >= 0) {
717 *length = hdrtoken_index_to_length(this->m_scheme_wks_idx);
718 return hdrtoken_index_to_wks(this->m_scheme_wks_idx);
719 } else {
720 *length = this->m_len_scheme;
721 return this->m_ptr_scheme;
722 }
723}
724
725/*-------------------------------------------------------------------------
726 -------------------------------------------------------------------------*/

Callers 2

scheme_getMethod · 0.80

Calls 2

hdrtoken_index_to_lengthFunction · 0.85
hdrtoken_index_to_wksFunction · 0.85

Tested by

no test coverage detected