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

Method set_header_for_transform

src/proxy/http/HttpTransact.cc:4917–4929  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4915}
4916
4917void
4918HttpTransact::set_header_for_transform(State *s, HTTPHdr *base_header)
4919{
4920 s->hdr_info.transform_response.create(HTTP_TYPE_RESPONSE);
4921 s->hdr_info.transform_response.copy(base_header);
4922
4923 // Nuke the content length since 1) the transform will probably
4924 // change it. 2) it would only be valid for the first transform
4925 // in the chain
4926 s->hdr_info.transform_response.field_delete(MIME_FIELD_CONTENT_LENGTH, MIME_LEN_CONTENT_LENGTH);
4927
4928 dump_header(dbg_ctl_http_hdrs, &s->hdr_info.transform_response, s->state_machine_id(), "Header To Transform");
4929}
4930
4931void
4932HttpTransact::set_headers_for_cache_write(State *s, HTTPInfo *cache_info, HTTPHdr *request, HTTPHdr *response)

Callers

nothing calls this directly

Calls 5

dump_headerFunction · 0.85
field_deleteMethod · 0.80
state_machine_idMethod · 0.80
createMethod · 0.45
copyMethod · 0.45

Tested by

no test coverage detected