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

Function TSUrlParse

src/api/InkAPI.cc:1008–1026  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1006}
1007
1008TSParseResult
1009TSUrlParse(TSMBuffer bufp, TSMLoc obj, const char **start, const char *end)
1010{
1011 sdk_assert(sdk_sanity_check_mbuffer(bufp) == TS_SUCCESS);
1012 sdk_assert(sdk_sanity_check_url_handle(obj) == TS_SUCCESS);
1013 sdk_assert(sdk_sanity_check_null_ptr((void *)start) == TS_SUCCESS);
1014 sdk_assert(sdk_sanity_check_null_ptr((void *)*start) == TS_SUCCESS);
1015 sdk_assert(sdk_sanity_check_null_ptr((void *)end) == TS_SUCCESS);
1016
1017 if (!isWriteable(bufp)) {
1018 return TS_PARSE_ERROR;
1019 }
1020
1021 URL u;
1022 u.m_heap = (reinterpret_cast<HdrHeapSDKHandle *>(bufp))->m_heap;
1023 u.m_url_impl = reinterpret_cast<URLImpl *>(obj);
1024 url_clear(u.m_url_impl);
1025 return static_cast<TSParseResult>(u.parse(start, end));
1026}
1027
1028int
1029TSUrlLengthGet(TSMBuffer bufp, TSMLoc obj)

Callers 15

setup_requestFunction · 0.85
RequestMethod · 0.85
TSRemapDoRemapFunction · 0.85
read_requestFunction · 0.85
createRequestStringFunction · 0.85
execMethod · 0.85
finalizeMethod · 0.85
range_header_checkFunction · 0.85
TSRemapDoRemapFunction · 0.85
TSRemapDoRemapFunction · 0.85
url_setMethod · 0.85

Calls 6

sdk_sanity_check_mbufferFunction · 0.85
isWriteableFunction · 0.85
url_clearFunction · 0.85
parseMethod · 0.45

Tested by 1