cheroot.test.test_header_values module¶
Check forbidden characters in HTTP field values.
- class cheroot.test.test_header_values._AcceptedGateway(req)¶
Bases:
GatewayAcknowledge requests that reach the application.
- cheroot.test.test_header_values.test_header_value_control_characters(native_server: HTTPServer, http_request_timeout: float, header_lines: bytes, expected_status: HTTPStatus) None¶
Reject CR, LF and NUL in field values before trimming whitespace.
- Parameters:
native_server – live HTTP server
http_request_timeout – socket timeout in seconds
header_lines – field lines to send on the wire
expected_status – response required by the field-value grammar