SILENT KILLERPanel

Current Path: > > opt > alt > python39 > lib64 > > python3.9 > wsgiref > __pycache__


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/alt/python39/lib64//python3.9/wsgiref/__pycache__

NameTypeSizeLast ModifiedActions
__init__.cpython-39.opt-1.pyc File 739 bytes June 19 2025 12:11:11.
__init__.cpython-39.opt-2.pyc File 144 bytes June 19 2025 12:11:17.
__init__.cpython-39.pyc File 739 bytes June 19 2025 12:11:11.
handlers.cpython-39.opt-1.pyc File 15923 bytes June 19 2025 12:11:16.
handlers.cpython-39.opt-2.pyc File 10514 bytes June 19 2025 12:11:17.
handlers.cpython-39.pyc File 16389 bytes June 19 2025 12:11:11.
headers.cpython-39.opt-1.pyc File 7694 bytes June 19 2025 12:11:16.
headers.cpython-39.opt-2.pyc File 4465 bytes June 19 2025 12:11:17.
headers.cpython-39.pyc File 7747 bytes June 19 2025 12:11:11.
simple_server.cpython-39.opt-1.pyc File 5314 bytes June 19 2025 12:11:11.
simple_server.cpython-39.opt-2.pyc File 4541 bytes June 19 2025 12:11:17.
simple_server.cpython-39.pyc File 5314 bytes June 19 2025 12:11:11.
util.cpython-39.opt-1.pyc File 5408 bytes June 19 2025 12:11:11.
util.cpython-39.opt-2.pyc File 3837 bytes June 19 2025 12:11:17.
util.cpython-39.pyc File 5408 bytes June 19 2025 12:11:11.
validate.cpython-39.opt-1.pyc File 14770 bytes June 19 2025 12:11:11.
validate.cpython-39.opt-2.pyc File 11137 bytes June 19 2025 12:11:17.
validate.cpython-39.pyc File 14770 bytes June 19 2025 12:11:11.

Reading File: //opt/alt/python39/lib64//python3.9/wsgiref/__pycache__/util.cpython-39.opt-1.pyc

a

XC?h��@sbdZddlZgd�ZGdd�d�Zdd�Zdd	�Zddd�Zd
d�Zdd�Zhd�j	Z
dd�ZdS)z$Miscellaneous WSGI-related Utilities�N)�FileWrapper�guess_scheme�application_uri�request_uri�shift_path_info�setup_testing_defaultsc@s2eZdZdZddd�Zdd�Zdd�Zd	d
�ZdS)
rz1Wrapper to convert file-like objects to iterables� cCs"||_||_t|d�r|j|_dS)N�close)�filelike�blksize�hasattrr	)�selfr
r�r�1/opt/alt/python39/lib64/python3.9/wsgiref/util.py�__init__s
zFileWrapper.__init__cCs6ddl}|jdtdd�|j�|j�}|r.|St�dS)NrzXFileWrapper's __getitem__ method ignores 'key' parameter. Use iterator protocol instead.�)�
stacklevel)�warnings�warn�DeprecationWarningr
�readr�
IndexError)r
�keyr�datarrr�__getitem__s�zFileWrapper.__getitem__cCs|S�Nr)r
rrr�__iter__!szFileWrapper.__iter__cCs|j�|j�}|r|St�dSr)r
rr�
StopIteration)r
rrrr�__next__$szFileWrapper.__next__N)r)�__name__�
__module__�__qualname__�__doc__rrrrrrrrrs


rcCs|�d�dvrdSdSdS)zMReturn a guess for whether 'wsgi.url_scheme' should be 'http' or 'https'
    ZHTTPS)ZyesZon�1�https�httpN)�get)�environrrrr*srcCs�|dd}ddlm}|�d�r0||d7}nR||d7}|ddkrf|dd	kr�|d
|d7}n|ddkr�|d
|d7}|||�d�p�d
dd�7}|S)z@Return the application's base URI (no PATH_INFO or QUERY_STRING)�wsgi.url_schemez://r��quote�	HTTP_HOST�SERVER_NAMEr$�SERVER_PORT�443�:�80�SCRIPT_NAME�/�latin1)�encoding)�urllib.parser*r&)r'�urlr*rrrr2s
rTcCspt|�}ddlm}||�dd�ddd�}|�d�sF||d	d
�7}n||7}|rl|�d�rl|d|d7}|S)
zBReturn the full request URI, optionally including the query stringrr)�	PATH_INFO�z/;=,r3)Zsafer4r1�NZQUERY_STRING�?)rr5r*r&)r'Z
include_queryr6r*�	path_inforrrrFs
rcCs�|�dd�}|sdS|�d�}dd�|dd�D�|dd�<|d}|d=|�d	d�}t�|d|�}|�d�r~|dd�}|s�|�d�s�|d7}||d	<d�|�|d<|d
kr�d}|S)aZShift a name from PATH_INFO to SCRIPT_NAME, returning it

    If there are no remaining path segments in PATH_INFO, return None.
    Note: 'environ' is modified in-place; use a copy if you need to keep
    the original PATH_INFO or SCRIPT_NAME.

    Note: when PATH_INFO is just a '/', this returns '' and appends a trailing
    '/' to SCRIPT_NAME, even though empty path segments are normally ignored,
    and SCRIPT_NAME doesn't normally end in a '/'.  This is intentional
    behavior, to ensure that an application can tell the difference between
    '/x' and '/x/' when traversing to objects.
    r7r8Nr2cSsg|]}|r|dkr|�qS)�.r)�.0�prrr�
<listcomp>e�z#shift_path_info.<locals>.<listcomp>r9���r1r<)r&�split�	posixpath�normpath�endswith�join)r'r;�
path_parts�nameZscript_namerrrrSs$


rcCs�|�dd�|�dd�|�d|d�|�dd�d|vr\d	|vr\|�dd
�|�d	d�|�dd
�|�dd�|�dd�|�dd�ddlm}m}|�d|��|�d|��|�dt|��|ddkr�|�dd�n|ddkr�|�dd�dS)a:Update 'environ' with trivial defaults for testing purposes

    This adds various parameters required for WSGI, including HTTP_HOST,
    SERVER_NAME, SERVER_PORT, REQUEST_METHOD, SCRIPT_NAME, PATH_INFO,
    and all of the wsgi.* variables.  It only supplies default values,
    and does not replace any existing settings for these variables.

    This routine is intended to make it easier for unit tests of WSGI
    servers and applications to set up dummy environments.  It should *not*
    be used by actual WSGI servers or applications, since the data is fake!
    r,z	127.0.0.1ZSERVER_PROTOCOLzHTTP/1.0r+ZREQUEST_METHODZGETr1r7r8r2zwsgi.version)r9rz
wsgi.run_oncerzwsgi.multithreadzwsgi.multiprocess)�StringIO�BytesIOz
wsgi.inputzwsgi.errorsr(r%r-r0r$r.N)�
setdefault�iorIrJr)r'rIrJrrrr|s&
r>Ztezproxy-authorizationZ
connectionZtrailersztransfer-encodingZupgradezproxy-authenticatez
keep-alivecCst|���S)z?Return true if 'header_name' is an HTTP/1.1 "Hop-by-Hop" header)�_hoppish�lower)Zheader_namerrr�
is_hop_by_hop�srO)T)r"rC�__all__rrrrrr�__contains__rMrOrrrr�<module>s

)(


SILENT KILLER Tool