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

Method build_response_copy

src/proxy/http/HttpTransact.cc:4110–4118  ·  view source on GitHub ↗

void HttpTransact::build_response_copy Build a response with minimal changes from the base response

Source from the content-addressed store, hash-verified

4108// Build a response with minimal changes from the base response
4109//
4110void
4111HttpTransact::build_response_copy(State *s, HTTPHdr *base_response, HTTPHdr *outgoing_response, HTTPVersion outgoing_version)
4112{
4113 HttpTransactHeaders::copy_header_fields(base_response, outgoing_response, s->txn_conf->fwd_proxy_auth_to_parent, s->current.now);
4114 HttpTransactHeaders::convert_response(outgoing_version, outgoing_response); // http version conversion
4115 HttpTransactHeaders::add_server_header_to_response(s->txn_conf, outgoing_response);
4116
4117 dump_header(dbg_ctl_http_hdrs, outgoing_response, s->state_machine_id(), "Proxy's Response");
4118}
4119
4120//////////////////////////////////////////////////////////////////////////
4121// IMS handling table //

Callers

nothing calls this directly

Calls 2

dump_headerFunction · 0.85
state_machine_idMethod · 0.80

Tested by

no test coverage detected