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

Method convert_response

src/proxy/http/HttpTransactHeaders.cc:291–302  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////////// Just convert the outgoing response to the appropriate version

Source from the content-addressed store, hash-verified

289////////////////////////////////////////////////////////////////////////
290// Just convert the outgoing response to the appropriate version
291void
292HttpTransactHeaders::convert_response(HTTPVersion outgoing_ver, HTTPHdr *outgoing_response, char const *reason_phrase)
293{
294 if (outgoing_ver == HTTPVersion(1, 1)) {
295 convert_to_1_1_response_header(outgoing_response, reason_phrase);
296 } else if (outgoing_ver == HTTPVersion(1, 0)) {
297 convert_to_1_0_response_header(outgoing_response, reason_phrase);
298 } else {
299 Dbg(dbg_ctl_http_trans, "[HttpTransactHeaders::convert_response]"
300 "Unsupported Version - passing through");
301 }
302}
303
304////////////////////////////////////////////////////////////////////////
305// Take an existing outgoing request header and make it HTTP/1.0

Callers

nothing calls this directly

Calls 1

HTTPVersionClass · 0.85

Tested by

no test coverage detected