✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ premium290.web-hosting.com ​🇻​♯➤ 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2025

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 63.250.38.37 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.104
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/urllib3/util//response.py
from __future__ import absolute_import
from ..packages.six.moves import http_client as httplib

from ..exceptions import HeaderParsingError


def is_fp_closed(obj):
    """
    Checks whether a given file-like object is closed.

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

    try:
        # Check `isclosed()` first, in case Python3 doesn't set `closed`.
        # GH Issue #928
        return obj.isclosed()
    except AttributeError:
        pass

    try:
        # Check via the official file-like-object way.
        return obj.closed
    except AttributeError:
        pass

    try:
        # Check if the object is a container for another file-like object that
        # gets released on exhaustion (e.g. HTTPResponse).
        return obj.fp is None
    except AttributeError:
        pass

    raise ValueError("Unable to determine whether fp is closed.")


def 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 headers: Headers to verify.
    :type headers: `httplib.HTTPMessage`.

    :raises urllib3.exceptions.HeaderParsingError:
        If parsing errors are found.
    """

    # This will fail silently if we pass in the wrong kind of parameter.
    # To make debugging easier add an explicit check.
    if not isinstance(headers, httplib.HTTPMessage):
        raise TypeError("expected httplib.Message, got {0}.".format(type(headers)))

    defects = getattr(headers, "defects", None)
    get_payload = getattr(headers, "get_payload", None)

    unparsed_data = None
    if get_payload:
        # get_payload is actually email.message.Message.get_payload;
        # we're only interested in the result if it's not a multipart message
        if not headers.is_multipart():
            payload = get_payload()

            if isinstance(payload, (bytes, str)):
                unparsed_data = payload

    if defects or unparsed_data:
        raise HeaderParsingError(defects=defects, unparsed_data=unparsed_data)


def is_response_to_head(response):
    """
    Checks whether the request of a response has been a HEAD-request.
    Handles the quirks of AppEngine.

    :param conn:
    :type conn: :class:`httplib.HTTPResponse`
    """
    # FIXME: Can we do this somehow without accessing private httplib _method?
    method = response._method
    if isinstance(method, int):  # Platform-specific: Appengine
        return method == 3
    return method.upper() == "HEAD"


Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
3 Mar 2024 10.49 PM
root / linksafe
0755
__init__.py
1.014 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
__init__.pyc
1.359 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
connection.py
4.528 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
connection.pyc
4.26 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
queue.py
0.485 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
queue.pyc
1.79 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
request.py
3.726 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
request.pyc
4.088 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
response.py
2.513 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
response.pyc
2.63 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
retry.py
15.179 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
retry.pyc
15.982 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
ssl_.py
14.183 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
ssl_.pyc
12.823 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
timeout.py
9.714 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
timeout.pyc
10.37 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
url.py
13.653 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
url.pyc
13.844 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
wait.py
5.279 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
wait.pyc
5.057 KB
13 Nov 2023 9.11 PM
root / linksafe
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF