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

Method parse_no_host_check

include/proxy/hdrs/URL.h:745–752  ·  view source on GitHub ↗

Parser doesn't clear URL first, so if you parse over a non-clear URL, the resulting URL may contain some of the previous data. */

Source from the content-addressed store, hash-verified

743
744 */
745inline ParseResult
746URL::parse_no_host_check(std::string_view url)
747{
748 ink_assert(valid());
749 const char *start = url.data();
750 const char *end = url.data() + url.length();
751 return url_parse(m_heap, m_url_impl, &start, end, COPY_STRINGS, !USE_STRICT_URI_PARSING, !VERIFY_HOST_CHARACTERS);
752}
753
754/**
755 Parser doesn't clear URL first, so if you parse over a non-clear URL,

Callers 2

remap_parse_config_btiFunction · 0.80
test_parseFunction · 0.80

Calls 3

url_parseFunction · 0.85
dataMethod · 0.45
lengthMethod · 0.45

Tested by 1

test_parseFunction · 0.64