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

Function TSHttpTxnEffectiveUrlStringGet

src/api/InkAPI.cc:3937–3945  ·  view source on GitHub ↗

Shortcut to just get the URL. The caller is responsible to free memory that is allocated for the string that is returned.

Source from the content-addressed store, hash-verified

3935// The caller is responsible to free memory that is allocated for the string
3936// that is returned.
3937char *
3938TSHttpTxnEffectiveUrlStringGet(TSHttpTxn txnp, int *length)
3939{
3940 sdk_assert(TS_SUCCESS == sdk_sanity_check_txn(txnp));
3941 sdk_assert(sdk_sanity_check_null_ptr((void *)length) == TS_SUCCESS);
3942
3943 HttpSM *sm = reinterpret_cast<HttpSM *>(txnp);
3944 return sm->t_state.hdr_info.client_request.url_string_get(nullptr, length);
3945}
3946
3947TSReturnCode
3948TSHttpHdrEffectiveUrlBufGet(TSMBuffer hdr_buf, TSMLoc hdr_loc, char *buf, int64_t size, int64_t *length)

Callers 15

getEffectiveUrlMethod · 0.85
update_object_sizeFunction · 0.85
should_skip_this_objFunction · 0.85
read_requestFunction · 0.85
read_resp_hdrFunction · 0.85
InjectEffectiveURLHeaderFunction · 0.85
finalizeMethod · 0.85
handle_requestFunction · 0.85
range_header_checkFunction · 0.85
main_handlerFunction · 0.85

Calls 3

sdk_sanity_check_txnFunction · 0.85
url_string_getMethod · 0.80

Tested by 1