| 1024 | } |
| 1025 | |
| 1026 | void |
| 1027 | request_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 | |
| 1045 | static int passes; |
| 1046 | static int fails; |
nothing calls this directly
no test coverage detected