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

Method convert_request

src/proxy/http/HttpTransactHeaders.cc:276–287  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

274////////////////////////////////////////////////////////////////////////
275// Just convert the outgoing request to the appropriate version
276void
277HttpTransactHeaders::convert_request(HTTPVersion outgoing_ver, HTTPHdr *outgoing_request)
278{
279 if (outgoing_ver == HTTPVersion(1, 1)) {
280 convert_to_1_1_request_header(outgoing_request);
281 } else if (outgoing_ver == HTTPVersion(1, 0)) {
282 convert_to_1_0_request_header(outgoing_request);
283 } else {
284 Dbg(dbg_ctl_http_trans, "[HttpTransactHeaders::convert_request]"
285 "Unsupported Version - passing through");
286 }
287}
288
289////////////////////////////////////////////////////////////////////////
290// Just convert the outgoing response to the appropriate version

Callers

nothing calls this directly

Calls 1

HTTPVersionClass · 0.85

Tested by

no test coverage detected