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

Function url_parse

src/proxy/hdrs/URL.cc:1224–1237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1222using namespace UrlImpl;
1223
1224ParseResult
1225url_parse(HdrHeap *heap, URLImpl *url, const char **start, const char *end, bool copy_strings_p, int strict_uri_parsing,
1226 bool verify_host_characters)
1227{
1228 if (strict_uri_parsing == 1 && !url_is_strictly_compliant(*start, end)) {
1229 return PARSE_RESULT_ERROR;
1230 }
1231 if (strict_uri_parsing == 2 && !url_is_mostly_compliant(*start, end)) {
1232 return PARSE_RESULT_ERROR;
1233 }
1234
1235 ParseResult zret = url_parse_scheme(heap, url, start, end, copy_strings_p);
1236 return PARSE_RESULT_CONT == zret ? url_parse_http(heap, url, start, end, copy_strings_p, verify_host_characters) : zret;
1237}
1238
1239ParseResult
1240url_parse_regex(HdrHeap *heap, URLImpl *url, const char **start, const char *end, bool copy_strings_p)

Callers 4

http_parser_parse_reqFunction · 0.85
parse_no_host_checkMethod · 0.85
parseMethod · 0.85
url_setMethod · 0.85

Calls 4

url_is_mostly_compliantFunction · 0.85
url_parse_schemeFunction · 0.85
url_parse_httpFunction · 0.85

Tested by

no test coverage detected