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

Function TSFetchCreate

src/api/InkAPI.cc:6644–6655  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6642}
6643
6644TSFetchSM
6645TSFetchCreate(TSCont contp, const char *method, const char *url, const char *version, struct sockaddr const *client_addr, int flags)
6646{
6647 sdk_assert(sdk_sanity_check_continuation(contp) == TS_SUCCESS);
6648 sdk_assert(ats_is_ip(client_addr));
6649
6650 FetchSM *fetch_sm = FetchSMAllocator.alloc();
6651
6652 fetch_sm->ext_init(reinterpret_cast<Continuation *>(contp), method, url, version, client_addr, flags);
6653
6654 return reinterpret_cast<TSFetchSM>(fetch_sm);
6655}
6656
6657void
6658TSFetchHeaderAdd(TSFetchSM fetch_sm, const char *name, int name_len, const char *value, int value_len)

Callers 2

runMethod · 0.85
ts_lua_fetch_one_itemFunction · 0.85

Calls 4

ats_is_ipFunction · 0.85
allocMethod · 0.45
ext_initMethod · 0.45

Tested by

no test coverage detected