Your IP : 18.191.205.110


Current Path : /opt/alt/python310/lib64/python3.10/wsgiref/__pycache__/
Upload File :
Current File : //opt/alt/python310/lib64/python3.10/wsgiref/__pycache__/util.cpython-310.opt-2.pyc

o

6��f��@s`	ddlZgd�ZGdd�d�Zdd�Zdd�Zdd
d�Zdd
�Zdd�Zhd�jZ	dd�Z
dS)�N)�FileWrapper�guess_scheme�application_uri�request_uri�shift_path_info�setup_testing_defaultsc@s0eZdZ	ddd�Zdd�Zdd�Zdd	�Zd
S)r� cCs&||_||_t|d�r|j|_dSdS)N�close)�filelike�blksize�hasattrr	)�selfr
r�r�3/opt/alt/python310/lib64/python3.10/wsgiref/util.py�__init__s

�zFileWrapper.__init__cCs2ddl}|jdtdd�|j�|j�}|r|St�)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�r)r
rr�
StopIteration)r
rrrr�__next__$szFileWrapper.__next__N)r)�__name__�
__module__�__qualname__rrrrrrrrrs

rcCs	|�d�dvr
dSdS)NZHTTPS)ZyesZon�1�https�http)�get)�environrrrr*srcCs�	|dd}ddlm}|�d�r||d7}n)||d7}|ddkr4|dd	kr3|d
|d7}n|ddkrB|d
|d7}|||�d�pJd
dd�7}|S)N�wsgi.url_schemez://r��quote�	HTTP_HOST�SERVER_NAMEr#�SERVER_PORT�443�:�80�SCRIPT_NAME�/�latin1)�encoding)�urllib.parser)r%)r&�urlr)rrrr2s
�rTcCsr	t|�}ddlm}||�dd�ddd�}|�d�s$||d	d�7}n||7}|r7|�d
�r7|d|d
7}|S)Nrr(�	PATH_INFO�z/;=,r2)Zsafer3r0�ZQUERY_STRING�?)rr4r)r%)r&Z
include_queryr5r)�	path_inforrrrFs
rcCs�	|�dd�}|sdS|�d�}dd�|dd�D�|dd�<|d}|d=|�dd�}t�|d|�}|�d�r@|dd�}|sK|�d�sK|d7}||d<d�|�|d<|d	kr\d}|S)
Nr6r7r1cSsg|]
}|r|dkr|�qS)�.r)�.0�prrr�
<listcomp>esz#shift_path_info.<locals>.<listcomp>r8���r0r;)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|��|ddkrs|�dd�dS|ddkr�|�dd�dSdS)Nr+z	127.0.0.1ZSERVER_PROTOCOLzHTTP/1.0r*ZREQUEST_METHODZGETr0r6r7r1zwsgi.version)r8rz
wsgi.run_oncerzwsgi.multithreadzwsgi.multiprocess)�StringIO�BytesIOz
wsgi.inputzwsgi.errorsr'r$r,r/r#r-)�
setdefault�iorGrHr)r&rGrHrrrr|s*�r>zproxy-authorizationZtrailers�tezproxy-authenticateZupgradeZ
connectionz
keep-aliveztransfer-encodingcCs	t|���Sr)�_hoppish�lower)Zheader_namerrr�
is_hop_by_hop�srN)T)rA�__all__rrrrrr�__contains__rLrNrrrr�<module>s

)(�

?>