OpenQuizz
Une application de gestion des contenus pédagogiques
pip._vendor.urllib3.util.response Namespace Reference

Functions

def is_fp_closed (obj)
 
def assert_header_parsing (headers)
 
def is_response_to_head (response)
 

Function Documentation

◆ assert_header_parsing()

def pip._vendor.urllib3.util.response.assert_header_parsing (   headers)
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.

◆ is_fp_closed()

def pip._vendor.urllib3.util.response.is_fp_closed (   obj)
Checks whether a given file-like object is closed.

:param obj:
    The file-like object to check.

◆ is_response_to_head()

def pip._vendor.urllib3.util.response.is_response_to_head (   response)
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.