Lines Matching refs:hdr
43 const char *hdr = (char *)req; in mock_http_server() local
45 int is_get = count >= 4 && CHECK_AND_SKIP_PREFIX(hdr, "GET "); in mock_http_server()
49 && !(TEST_true(count >= 5 && CHECK_AND_SKIP_PREFIX(hdr, "POST ")))) in mock_http_server()
52 path = hdr; in mock_http_server()
53 hdr = strchr(hdr, ' '); in mock_http_server()
54 if (hdr == NULL) in mock_http_server()
57 if (!TEST_strn_eq(++hdr, "HTTP/1.", len)) in mock_http_server()
59 hdr += len; in mock_http_server()
61 if (!TEST_char_le('0', *hdr) || !TEST_char_le(*hdr++, '1')) in mock_http_server()
63 if (!TEST_char_eq(*hdr++, '\r') || !TEST_char_eq(*hdr++, '\n')) in mock_http_server()
65 count -= (hdr - req); in mock_http_server()
94 if (CHECK_AND_SKIP_PREFIX(hdr, "Connection: ")) { in mock_http_server()
96 hdr = strstr(hdr, "\r\n"); in mock_http_server()
97 if (hdr == NULL) in mock_http_server()
99 hdr += 2; in mock_http_server()
102 return BIO_write(out, hdr, count) == count; in mock_http_server()