cheroot.test.test_request_line_whitespace module¶
Check request-line terminators over real connections.
- class cheroot.test.test_request_line_whitespace._AcceptedGateway(req)¶
Bases:
GatewayAcknowledge requests that reach the application.
- cheroot.test.test_request_line_whitespace.test_request_line_trailing_whitespace(native_server: HTTPServer, http_request_timeout: float, version: bytes, expected_status: HTTPStatus) None¶
Require the HTTP version to be followed immediately by CRLF.
- Parameters:
native_server – live HTTP server
http_request_timeout – socket timeout in seconds
version – version text including any extra whitespace
expected_status – response required by the request-line grammar