/////////////////////////////////////////////////////////////////// Just convert the outgoing response to the appropriate version
| 289 | //////////////////////////////////////////////////////////////////////// |
| 290 | // Just convert the outgoing response to the appropriate version |
| 291 | void |
| 292 | HttpTransactHeaders::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 |
nothing calls this directly
no test coverage detected