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

Method do_transform_open

src/proxy/http/HttpSM.cc:5850–5873  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5848}
5849
5850VConnection *
5851HttpSM::do_transform_open()
5852{
5853 ink_assert(transform_info.vc == nullptr);
5854 APIHook *hooks;
5855
5856 if (is_action_tag_set("http_nullt")) {
5857 txn_hook_add(TS_HTTP_RESPONSE_TRANSFORM_HOOK, transformProcessor.null_transform(mutex.get()));
5858 }
5859
5860 hooks = api_hooks.get(TS_HTTP_RESPONSE_TRANSFORM_HOOK);
5861 if (hooks) {
5862 transform_info.vc = transformProcessor.open(this, hooks);
5863
5864 // Record the transform VC in our table
5865 transform_info.entry = vc_table.new_entry();
5866 transform_info.entry->vc = transform_info.vc;
5867 transform_info.entry->vc_type = HTTP_TRANSFORM_VC;
5868 } else {
5869 transform_info.vc = nullptr;
5870 }
5871
5872 return transform_info.vc;
5873}
5874
5875void
5876HttpSM::mark_host_failure(ResolveInfo *info, ts_time time_down)

Calls 4

null_transformMethod · 0.80
new_entryMethod · 0.80
getMethod · 0.45
openMethod · 0.45

Tested by

no test coverage detected