AlkantarClanX12

Your IP : 18.117.168.71


Current Path : /opt/alt/python37/lib64/python3.7/wsgiref/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib64/python3.7/wsgiref/__pycache__/util.cpython-37.opt-2.pyc

B

YI~d�	@stddlZddddddgZGdd�d�Zd	d�Zd
d�Zddd�Zd
d�Zdd�Zddddddddd�jZ	dd�Z
dS)�N�FileWrapper�guess_scheme�application_uri�request_uri�shift_path_info�setup_testing_defaultsc@s.eZdZddd�Zdd�Zdd�Zdd	�Zd
S)r� cCs"||_||_t|d�r|j|_dS)N�close)�filelike�blksize�hasattrr	)�selfr
r�r�1/opt/alt/python37/lib64/python3.7/wsgiref/util.py�__init__s
zFileWrapper.__init__cCs|j�|j�}|r|St�dS)N)r
�readr�
IndexError)r
�key�datarrr�__getitem__szFileWrapper.__getitem__cCs|S)Nr)r
rrr�__iter__szFileWrapper.__iter__cCs|j�|j�}|r|St�dS)N)r
rr�
StopIteration)r
rrrr�__next__szFileWrapper.__next__N)r)�__name__�
__module__�__qualname__rrrrrrrrrs
cCs|�d�dkrdSdSdS)NZHTTPS)ZyesZon�1�https�http)�get)�environrrrr#scCs�|dd}ddlm}|�d�r0||d7}nR||d7}|ddkrf|dd	kr�|d
|d7}n|ddkr�|d
|d7}|||�d�p�d
dd�7}|S)Nzwsgi.url_schemez://r)�quote�	HTTP_HOST�SERVER_NAMEr�SERVER_PORT�443�:�80�SCRIPT_NAME�/�latin1)�encoding)�urllib.parser!r)r �urlr!rrrr+s
TcCspt|�}ddlm}||�dd�ddd�}|�d�sF||d	d�7}n||7}|rl|�d
�rl|d|d
7}|S)Nr)r!�	PATH_INFO�z/;=,r*)Zsafer+r(�ZQUERY_STRING�?)rr,r!r)r Z
include_queryr-r!�	path_inforrrr?s
cCs�|�dd�}|sdS|�d�}dd�|dd�D�|dd�<|d}|d=|�dd�}t�|d|�}|�d�r~|dd�}|s�|�d�s�|d7}||d<d�|�|d<|d	kr�d}|S)
Nr.r/r)cSsg|]}|r|dkr|�qS)�.r)�.0�prrr�
<listcomp>^sz#shift_path_info.<locals>.<listcomp>r0���r(r3)r�split�	posixpath�normpath�endswith�join)r r2�
path_parts�nameZscript_namerrrrLs$


cCs�|�dd�|�dd�|�d|d�|�dd�d|kr\d	|kr\|�dd
�|�d	d�|�dd
�|�dd�|�dd�|�dd�ddlm}m}|�d|��|�d|��|�dt|��|ddkr�|�dd�n|ddkr�|�dd�dS)Nr#z	127.0.0.1ZSERVER_PROTOCOLzHTTP/1.0r"ZREQUEST_METHODZGETr(r.r/r)zwsgi.version)r0rz
wsgi.run_oncerzwsgi.multithreadzwsgi.multiprocess)�StringIO�BytesIOz
wsgi.inputzwsgi.errorszwsgi.url_schemerr$r'rr%)�
setdefault�ior?r@r)r r?r@rrrrus&
r0)Z
connectionz
keep-alivezproxy-authenticatezproxy-authorization�teZtrailersztransfer-encodingZupgradecCst|���S)N)�_hoppish�lower)Zheader_namerrr�
is_hop_by_hop�srF)T)r9�__all__rrrrrr�__contains__rDrFrrrr�<module>s

))