Tests for twisted.web.http_headers.

Function assertSanitized Assert that the components are sanitized to the expected value as both a header name and value, across all of Header's setters and getters.
Class BytesHeadersTests Tests for Headers, using bytes arguments for methods.
Class UnicodeHeadersTests Tests for Headers, using unicode arguments for methods.
def assertSanitized(testCase, components, expected):

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

ParameterstestCaseA test case.
componentsA sequence of values that contain linear whitespace to use as header names and values; see textLinearWhitespaceComponents and bytesLinearWhitespaceComponents
expectedThe expected sanitized form of the component for both headers names and their values.
API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.