Lines Matching refs:req
644 int test_invalid_header_content(int req, const char *str) in test_invalid_header_content() argument
651 http_parser_init(&parser, req ? HTTP_REQUEST : HTTP_RESPONSE); in test_invalid_header_content()
652 buf = req ? "GET / HTTP/1.1\r\n" : "HTTP/1.1 200 OK\r\n"; in test_invalid_header_content()
673 int test_invalid_header_field_content_error(int req) in test_invalid_header_field_content_error() argument
677 rc = test_invalid_header_content(req, "Foo: F\01ailure"); in test_invalid_header_field_content_error()
682 rc = test_invalid_header_content(req, "Foo: B\02ar"); in test_invalid_header_field_content_error()
689 int test_invalid_header_field(int req, const char *str) in test_invalid_header_field() argument
696 http_parser_init(&parser, req ? HTTP_REQUEST : HTTP_RESPONSE); in test_invalid_header_field()
697 buf = req ? "GET / HTTP/1.1\r\n" : "HTTP/1.1 200 OK\r\n"; in test_invalid_header_field()
717 int test_invalid_header_field_token_error(int req) in test_invalid_header_field_token_error() argument
721 rc = test_invalid_header_field(req, "Fo@: Failure"); in test_invalid_header_field_token_error()
726 rc = test_invalid_header_field(req, "Foo\01\test: Bar"); in test_invalid_header_field_token_error()
732 int test_double_content_length_error(int req) in test_double_content_length_error() argument
739 http_parser_init(&parser, req ? HTTP_REQUEST : HTTP_RESPONSE); in test_double_content_length_error()
740 buf = req ? "GET / HTTP/1.1\r\n" : "HTTP/1.1 200 OK\r\n"; in test_double_content_length_error()
762 int test_chunked_content_length_error(int req) in test_chunked_content_length_error() argument
769 http_parser_init(&parser, req ? HTTP_REQUEST : HTTP_RESPONSE); in test_chunked_content_length_error()
771 buf = req ? "GET / HTTP/1.1\r\n" : "HTTP/1.1 200 OK\r\n"; in test_chunked_content_length_error()
793 int test_header_cr_no_lf_error(int req) in test_header_cr_no_lf_error() argument
800 http_parser_init(&parser, req ? HTTP_REQUEST : HTTP_RESPONSE); in test_header_cr_no_lf_error()
801 buf = req ? "GET / HTTP/1.1\r\n" : "HTTP/1.1 200 OK\r\n"; in test_header_cr_no_lf_error()