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

Function TSHttpHookAdd

src/api/InkAPI.cc:3700–3715  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3698/* HTTP hooks */
3699
3700void
3701TSHttpHookAdd(TSHttpHookID id, TSCont contp)
3702{
3703 INKContInternal *icontp;
3704 sdk_assert(sdk_sanity_check_continuation(contp) == TS_SUCCESS);
3705 sdk_assert(sdk_sanity_check_hook_id(id) == TS_SUCCESS);
3706
3707 icontp = reinterpret_cast<INKContInternal *>(contp);
3708
3709 TSSslHookInternalID internalId{id};
3710 if (internalId.is_in_bounds()) {
3711 SSLAPIHooks::instance()->append(internalId, icontp);
3712 } else { // Follow through the regular HTTP hook framework
3713 http_global_hooks->append(id, icontp);
3714 }
3715}
3716
3717void
3718TSLifecycleHookAdd(TSLifecycleHookID id, TSCont contp)

Callers 15

TSPluginInitFunction · 0.85
TSPluginInitFunction · 0.85
TSPluginInitFunction · 0.85
TSPluginInitFunction · 0.85
TSPluginInitFunction · 0.85
TSPluginInitFunction · 0.85
TSPluginInitFunction · 0.85
TSPluginInitFunction · 0.85
TSPluginInitFunction · 0.85
TSPluginInitFunction · 0.85
TSPluginInitFunction · 0.85
TSPluginInitFunction · 0.85

Calls 4

sdk_sanity_check_hook_idFunction · 0.85
is_in_boundsMethod · 0.80
appendMethod · 0.45