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

Function TSFetchUrl

src/api/InkAPI.cc:6621–6635  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6619}
6620
6621TSFetchSM
6622TSFetchUrl(const char *headers, int request_len, sockaddr const *ip, TSCont contp, TSFetchWakeUpOptions callback_options,
6623 TSFetchEvent events)
6624{
6625 if (callback_options != NO_CALLBACK) {
6626 sdk_assert(sdk_sanity_check_continuation(contp) == TS_SUCCESS);
6627 }
6628
6629 FetchSM *fetch_sm = FetchSMAllocator.alloc();
6630
6631 fetch_sm->init(reinterpret_cast<Continuation *>(contp), callback_options, events, headers, request_len, ip);
6632 fetch_sm->httpConnect();
6633
6634 return reinterpret_cast<TSFetchSM>(fetch_sm);
6635}
6636
6637void
6638TSFetchFlagSet(TSFetchSM fetch_sm, int flags)

Callers 6

runMethod · 0.85
cacheNodeListFunction · 0.85
addFetchRequestMethod · 0.85
execMethod · 0.85
httpCallMethod · 0.85
intercept_fetch_the_urlFunction · 0.85

Calls 4

httpConnectMethod · 0.80
allocMethod · 0.45
initMethod · 0.45

Tested by

no test coverage detected