new->info.response.code = atoi(http_line + lenof("HTTP/1.1 "));
} else
// request
if (!strncmp(http_line + line_length - lenof("HTTP/1.1"), "HTTP/1.", lenof("HTTP/1."))) {
const char *method_sep_uri = strchr(http_line, ' ');
new->type = HTTP_MSG_REQUEST;
new->info.response.code = atoi(http_line + lenof("HTTP/1.1 "));
} else
// request
if (!strncmp(http_line + line_length - lenof("HTTP/1.1"), "HTTP/1.", lenof("HTTP/1."))) {
const char *method_sep_uri = strchr(http_line, ' ');
new->type = HTTP_MSG_REQUEST;