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

Function request_to_data

src/proxy/ParentSelection.cc:1026–1043  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1024 }
1025
1026void
1027request_to_data(HttpRequestData *req, sockaddr const *srcip, sockaddr const *dstip, const char *str)
1028{
1029 HTTPParser parser;
1030
1031 ink_zero(req->src_ip);
1032 ats_ip_copy(&req->src_ip.sa, srcip);
1033 ink_zero(req->dest_ip);
1034 ats_ip_copy(&req->dest_ip.sa, dstip);
1035
1036 req->hdr = new HTTPHdr;
1037
1038 http_parser_init(&parser);
1039
1040 req->hdr->parse_req(&parser, &str, str + strlen(str), true);
1041
1042 http_parser_clear(&parser);
1043}
1044
1045static int passes;
1046static int fails;

Callers

nothing calls this directly

Calls 5

ink_zeroFunction · 0.85
ats_ip_copyFunction · 0.85
http_parser_initFunction · 0.85
http_parser_clearFunction · 0.85
parse_reqMethod · 0.45

Tested by

no test coverage detected