module documentation

Undocumented

Function assert_header_parsing Asserts whether all headers have been successfully parsed. Extracts encountered errors from the result of parsing headers.
Function is_response_to_head Checks whether the request of a response has been a HEAD-request. Handles the quirks of AppEngine.
def assert_header_parsing(headers): (source)

Asserts whether all headers have been successfully parsed. Extracts encountered errors from the result of parsing headers. Only works on Python 3. :param http.client.HTTPMessage headers: Headers to verify. :raises urllib3.exceptions.HeaderParsingError: If parsing errors are found.

def is_response_to_head(response): (source)

Checks whether the request of a response has been a HEAD-request. Handles the quirks of AppEngine. :param http.client.HTTPResponse response: Response to check if the originating request used 'HEAD' as a method.