module documentation

Class BytesHeadersTests Tests for Headers, using bytes arguments for methods.
Class MixedHeadersTests Tests for Headers, mixing bytes and str arguments for methods where that is permitted.
Class NameEncoderTests Test twisted.web.http_headers._NameEncoder
Class UnicodeHeadersTests Tests for Headers, using str arguments for methods.
Function assertSanitized Assert that the components are sanitized to the expected value as both a header value, across all of Header's setters and getters.
def assertSanitized(testCase: TestCase, components: Sequence[bytes] | Sequence[str], expected: bytes): ΒΆ

Assert that the components are sanitized to the expected value as both a header value, across all of Header's setters and getters.

Parameters
testCase:TestCaseA test case.
components:Sequence[bytes] | Sequence[str]A sequence of values that contain linear whitespace to use as header values; see textLinearWhitespaceComponents and bytesLinearWhitespaceComponents
expected:bytesThe expected sanitized form of the component as a header value.