HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.7/site-packages/urllib3/util/__pycache__/response.cpython-37.pyc
B

���g.
�@shddlmZddlmZddlmZmZddlm	Z	ddd�d	d
�Z
ddd
�dd�Zddd�dd�ZdS)�)�annotationsN)�!MultipartInvariantViolationDefect�StartBoundaryNotFoundDefect�)�HeaderParsingError�object�bool)�obj�returncCsfy|��Stk
rYnXy|jStk
r8YnXy
|jdkStk
rXYnXtd��dS)zt
    Checks whether a given file-like object is closed.

    :param obj:
        The file-like object to check.
    Nz)Unable to determine whether fp is closed.)�isclosed�AttributeError�closed�fp�
ValueError)r	�r�?/usr/local/lib/python3.7/site-packages/urllib3/util/response.py�is_fp_closed	s
rzhttplib.HTTPMessage�None)�headersr
cCsnt|tj�s tdt|��d���d}|��sF|��}t|ttf�rF|}dd�|j	D�}|s^|rjt
||d��dS)a>
    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.
    zexpected httplib.Message, got �.NcSsg|]}t|ttf�s|�qSr)�
isinstancerr)�.0�defectrrr�
<listcomp>Psz)assert_header_parsing.<locals>.<listcomp>)�defects�
unparsed_data)r�httplib�HTTPMessage�	TypeError�type�is_multipart�get_payload�bytes�strrr)rr�payloadrrrr�assert_header_parsing(s
r%zhttplib.HTTPResponse)�responser
cCs|j}|��dkS)z�
    Checks whether the request of a response has been a HEAD-request.

    :param http.client.HTTPResponse response:
        Response to check if the originating request
        used 'HEAD' as a method.
    �HEAD)�_method�upper)r&Z
method_strrrr�is_response_to_head[s	r*)
�
__future__r�http.client�clientrZemail.errorsrr�
exceptionsrrr%r*rrrr�<module>s3