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

Method url_get

include/proxy/hdrs/HTTP.h:999–1016  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

997 -------------------------------------------------------------------------*/
998
999inline URL *
1000HTTPHdr::url_get() const
1001{
1002 ink_assert(valid());
1003 ink_assert(m_http->m_polarity == HTTP_TYPE_REQUEST);
1004
1005 // It's entirely possible that someone changed URL in our impl
1006 // without updating the cached copy in the C++ layer. Check
1007 // to see if this happened before handing back the url
1008
1009 URLImpl *real_impl = m_http->u.req.m_url_impl;
1010 if (m_url_cached.m_url_impl != real_impl) {
1011 m_url_cached.set(this);
1012 m_url_cached.m_url_impl = real_impl;
1013 this->mark_target_dirty();
1014 }
1015 return (&m_url_cached);
1016}
1017
1018/*-------------------------------------------------------------------------
1019 -------------------------------------------------------------------------*/

Callers 15

_fill_target_cacheMethod · 0.95
path_getMethod · 0.95
query_getMethod · 0.95
fragment_getMethod · 0.95
scheme_getMethod · 0.95
openReadReadDoneMethod · 0.80
openReadMainMethod · 0.80
generate_keyFunction · 0.80
getPathHashMethod · 0.80
checkMethod · 0.80

Calls 2

mark_target_dirtyMethod · 0.95
setMethod · 0.45

Tested by

no test coverage detected