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

Method url_string_get

src/proxy/hdrs/HTTP.cc:1843–1857  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1841};
1842
1843char *
1844HTTPHdr::url_string_get(Arena *arena, int *length)
1845{
1846 char *zret = nullptr;
1847 UrlPrintHack hack(this);
1848
1849 if (hack.is_valid()) {
1850 // The use of a magic value for Arena to indicate the internal heap is
1851 // even uglier but it's less so than duplicating this entire method to
1852 // change that one thing.
1853
1854 zret = (arena == USE_HDR_HEAP_MAGIC) ? m_url_cached.string_get_ref(length) : m_url_cached.string_get(arena, length);
1855 }
1856 return zret;
1857}
1858
1859int
1860HTTPHdr::url_print(char *buff, int length, int *offset, int *skip, unsigned normalization_flags)

Callers 5

url_string_get_refMethod · 0.95
get_stringMethod · 0.80
OSDNSLookupMethod · 0.80

Calls 3

string_get_refMethod · 0.80
string_getMethod · 0.80
is_validMethod · 0.45

Tested by

no test coverage detected