module documentation

Tests for klein._headers.

Class EncodingTests Tests for encoding support in klein._headers.
Class FrozenHTTPHeadersTests Tests for FrozenHTTPHeaders.
Class GetValuesTestsMixIn Tests for utilities that access data from the RawHeaders internal representation.
Class HeaderNameNormalizationTests Tests for header name normalization.
Class MutableHTTPHeadersTests Tests for MutableHTTPHeaders.
Class MutableHTTPHeadersTestsMixIn Tests for IMutableHTTPHeaders implementations.
Class RawHeadersConversionTests Tests for normalizeRawHeaders.
Class RawHeadersReadTests Tests for utilities that access data from the "headers tartare" internal representation.
Function ascii_text A strategy which generates ASCII-encodable text.
Function decodeName Undocumented
Function decodeValue Undocumented
Function encodeName Undocumented
Function encodeValue Undocumented
Function headerValueSanitize Sanitize a header value by replacing linear whitespace with spaces.
Function latin1_text A strategy which generates ISO-8859-1-encodable text.
Constant T Undocumented
Variable DrawCallable Undocumented
@composite
def ascii_text(draw, min_size=0, max_size=None): (source)

A strategy which generates ASCII-encodable text.

Parameters
draw:DrawCallableUndocumented
min_size:Optional[int]The minimum number of characters in the text. None is treated as 0.
max_size:Optional[int]The maximum number of characters in the text. Use None for an unbounded size.
Returns
strUndocumented
def decodeName(name): (source)

Undocumented

Parameters
name:bytesUndocumented
Returns
strUndocumented
def decodeValue(name): (source)

Undocumented

Parameters
name:bytesUndocumented
Returns
strUndocumented
def encodeName(name): (source)

Undocumented

Parameters
name:strUndocumented
Returns
Optional[bytes]Undocumented
def encodeValue(name): (source)

Undocumented

Parameters
name:strUndocumented
Returns
Optional[bytes]Undocumented
def headerValueSanitize(value): (source)

Sanitize a header value by replacing linear whitespace with spaces.

Parameters
value:AnyStrUndocumented
Returns
AnyStrUndocumented
@composite
def latin1_text(draw, min_size=0, max_size=None): (source)

A strategy which generates ISO-8859-1-encodable text.

Parameters
draw:DrawCallableUndocumented
min_size:Optional[int]The minimum number of characters in the text. None is treated as 0.
max_size:Optional[int]The maximum number of characters in the text. Use None for an unbounded size.
Returns
strUndocumented

Undocumented

Value
TypeVar('T')
DrawCallable = (source)

Undocumented