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

Function URLPartGet

src/api/InkAPI.cc:1055–1068  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1053using URLPartSetF = void (URL::*)(const char *, int);
1054
1055static const char *
1056URLPartGet(TSMBuffer bufp, TSMLoc obj, int *length, URLPartGetF url_f)
1057{
1058 sdk_assert(sdk_sanity_check_mbuffer(bufp) == TS_SUCCESS);
1059 sdk_assert(sdk_sanity_check_url_handle(obj) == TS_SUCCESS);
1060 sdk_assert(sdk_sanity_check_null_ptr((void *)length) == TS_SUCCESS);
1061
1062 URL u;
1063
1064 u.m_heap = (reinterpret_cast<HdrHeapSDKHandle *>(bufp))->m_heap;
1065 u.m_url_impl = reinterpret_cast<URLImpl *>(obj);
1066
1067 return (u.*url_f)(length);
1068}
1069
1070static TSReturnCode
1071URLPartSet(TSMBuffer bufp, TSMLoc obj, const char *value, int length, URLPartSetF url_f)

Callers 7

TSUrlRawSchemeGetFunction · 0.85
TSUrlUserGetFunction · 0.85
TSUrlPasswordGetFunction · 0.85
TSUrlHostGetFunction · 0.85
TSUrlPathGetFunction · 0.85
TSUrlHttpQueryGetFunction · 0.85
TSUrlHttpFragmentGetFunction · 0.85

Calls 3

sdk_sanity_check_mbufferFunction · 0.85

Tested by

no test coverage detected