cheroot.test.test_header_names module¶
Exercise HTTP header parsing over real connections.
- class cheroot.test.test_header_names._AcceptedGateway(req)¶
Bases:
GatewayAcknowledge requests that reach the application.
- cheroot.test.test_header_names.test_header_name_grammar(native_server: HTTPServer, http_request_timeout: float, header_name: bytes, expected_status: HTTPStatus) None¶
Accept only nonempty HTTP tokens as header names.
- Parameters:
native_server – live HTTP server
http_request_timeout – socket timeout in seconds
header_name – field name to send on the wire
expected_status – response required by the HTTP token grammar