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

Method build_instantiated_buffer

src/proxy/http/HttpBodyFactory.cc:1158–1174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1156}
1157
1158char *
1159HttpBodyTemplate::build_instantiated_buffer(HttpTransact::State *context, int64_t *buflen_return)
1160{
1161 char *buffer = nullptr;
1162
1163 Dbg(dbg_ctl_body_factory_instantiation, " before instantiation: [%s]", template_buffer);
1164
1165 LogAccess la(context->state_machine);
1166
1167 buffer = resolve_logfield_string(&la, template_buffer);
1168
1169 *buflen_return = ((buffer == nullptr) ? 0 : strlen(buffer));
1170 Dbg(dbg_ctl_body_factory_instantiation, " after instantiation: [%s]", buffer);
1171 Dbg(dbg_ctl_body_factory, " returning %" PRId64 " byte instantiated buffer", *buflen_return);
1172
1173 return buffer;
1174}

Callers 1

fabricateMethod · 0.80

Calls 1

resolve_logfield_stringFunction · 0.85

Tested by

no test coverage detected