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

Function TSUrlStringGet

src/api/InkAPI.cc:1038–1050  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1036}
1037
1038char *
1039TSUrlStringGet(TSMBuffer bufp, TSMLoc obj, int *length)
1040{
1041 // bufp is not actually used anymore, so it can be null.
1042 if (bufp) {
1043 sdk_assert(sdk_sanity_check_mbuffer(bufp) == TS_SUCCESS);
1044 }
1045 sdk_assert(sdk_sanity_check_url_handle(obj) == TS_SUCCESS);
1046 sdk_assert(sdk_sanity_check_null_ptr((void *)length) == TS_SUCCESS);
1047
1048 URLImpl *url_impl = reinterpret_cast<URLImpl *>(obj);
1049 return url_string_get(url_impl, nullptr, length, nullptr);
1050}
1051
1052using URLPartGetF = const char *(URL::*)(int *);
1053using URLPartSetF = void (URL::*)(const char *, int);

Callers 15

TSRemapDoRemapFunction · 0.85
handle_responseFunction · 0.85
handle_responseFunction · 0.85
handle_scanFunction · 0.85
StringMethod · 0.85
getUrlStringMethod · 0.85
getClientStateMethod · 0.85
urlStringMethod · 0.85
read_requestFunction · 0.85

Calls 4

sdk_sanity_check_mbufferFunction · 0.85
url_string_getFunction · 0.85