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

Function TSUrlCreate

src/api/InkAPI.cc:911–923  ·  view source on GitHub ↗

TSMBuffer: pointers to HdrHeapSDKHandle objects TSMLoc: pointers to URLImpl objects

Source from the content-addressed store, hash-verified

909// TSMBuffer: pointers to HdrHeapSDKHandle objects
910// TSMLoc: pointers to URLImpl objects
911TSReturnCode
912TSUrlCreate(TSMBuffer bufp, TSMLoc *locp)
913{
914 sdk_assert(sdk_sanity_check_mbuffer(bufp) == TS_SUCCESS);
915 sdk_assert(sdk_sanity_check_null_ptr(locp) == TS_SUCCESS);
916
917 if (isWriteable(bufp)) {
918 HdrHeap *heap = reinterpret_cast<HdrHeapSDKHandle *>(bufp)->m_heap;
919 *locp = reinterpret_cast<TSMLoc>(url_create(heap));
920 return TS_SUCCESS;
921 }
922 return TS_ERROR;
923}
924
925TSReturnCode
926TSUrlClone(TSMBuffer dest_bufp, TSMBuffer src_bufp, TSMLoc src_url, TSMLoc *locp)

Callers 15

setup_requestFunction · 0.85
_initializeMethod · 0.85
RequestMethod · 0.85
read_requestFunction · 0.85
InjectCacheKeyHeaderFunction · 0.85
createRequestStringFunction · 0.85
execMethod · 0.85
finalizeMethod · 0.85

Calls 4

sdk_sanity_check_mbufferFunction · 0.85
isWriteableFunction · 0.85
url_createFunction · 0.85