Your IP : 3.146.65.134


Current Path : /opt/alt/python312/lib64/python3.12/wsgiref/__pycache__/
Upload File :
Current File : //opt/alt/python312/lib64/python3.12/wsgiref/__pycache__/util.cpython-312.opt-2.pyc

�

�Q�f`��l�	ddlZgd�ZGd�d�Zd�Zd�Zdd�Zd�Zd	�Zhd
�jZ	d�Z
y)
�N)�FileWrapper�guess_scheme�application_uri�request_uri�shift_path_info�setup_testing_defaultsc�"�eZdZ	dd�Zd�Zd�Zy)rc�\�||_||_t|d�r|j|_yy)N�close)�filelike�blksize�hasattrr)�selfrr
s   �3/opt/alt/python312/lib64/python3.12/wsgiref/util.py�__init__zFileWrapper.__init__s*�� ��
�����8�G�$�!���D�J�%�c��|S�N�)rs r�__iter__zFileWrapper.__iter__s���rc�`�|jj|j�}|r|St�r)r�readr
�
StopIteration)r�datas  r�__next__zFileWrapper.__next__s(���}�}�!�!�$�,�,�/����K��rN)i )�__name__�
__module__�__qualname__rrrrrrrrs��;�(��rrc�.�	|jd�dvryy)N�HTTPS)�yes�on�1�https�http)�get)�environs rrrs����{�{�7��/�/��rc��	|ddz}ddlm}|jd�r	||dz
}n7||dz
}|ddk(r|dd	k7r|d
|dzz
}n|ddk7r|d
|dzz
}|||jd�xsd
d��z
}|S)N�wsgi.url_schemez://r��quote�	HTTP_HOST�SERVER_NAMEr$�SERVER_PORT�443�:�80�SCRIPT_NAME�/�latin1)�encoding)�urllib.parser+r&)r'�urlr+s   rrr%s���J�
�#�
$�U�
*�C�"��{�{�;���w�{�#�#���w�}�%�%���$�%��0��}�%��.��s�W�]�3�3�3���}�%��-��s�W�]�3�3�3���5����]�+�2�s�X�F�F�C��Jrc���	t|�}ddlm}||jdd�dd��}|jd�s	||d	dz
}n||z
}|r|jd
�r|d|d
zz
}|S)Nrr*�	PATH_INFO�z/;=,r4)�safer5r2��QUERY_STRING�?)rr6r+r&)r'�
include_queryr7r+�	path_infos     rrr9sx��L�
�'�
"�C�"��g�k�k�+�b�1���R�I��;�;�}�%��y���}����y�������^�4��s�W�^�,�,�,���Jrc��	|jdd�}|sy|jd�}|ddD�cgc]
}|s�|dk7s�|��c}|dd|d}|d=|jdd�}tj|dz|z�}|j	d�r|dd}|s|j	d�s|dz
}||d<dj|�|d<|dk(rd}|Scc}w)Nr9r:r3r<����.r2)r&�split�	posixpath�normpath�endswith�join)r'r@�
path_parts�p�name�script_names      rrrFs�������K��+�I�������%�J�#-�a��#3�F�#3�a�q�Q�#�X��#3�F�J�q����a�=�D��1�
��+�+�m�B�/�K��$�$�[��_�T�%9�:�K����C� �!�#�2�&����,�,�S�1��s���(�G�M�� �X�X�j�1�G�K���S�y����K��+Gs�C�C�Cc��	|jdd�|jdd�|jd|d�|jdd�d|vr(d	|vr$|jdd
�|jd	d�|jdd
�|jdd�|jdd�|jdd�ddlm}m}|jd|��|jd|��|jdt	|��|ddk(r|jdd�y|ddk(r|jdd�yy)Nr-z	127.0.0.1�SERVER_PROTOCOLzHTTP/1.0r,�REQUEST_METHOD�GETr2r9r:r3zwsgi.version)r<rz
wsgi.run_oncerzwsgi.multithreadzwsgi.multiprocess)�StringIO�BytesIOz
wsgi.inputzwsgi.errorsr)r%r.r1r$r/)�
setdefault�iorQrRr)r'rQrRs   rrros?��
����}�[�1����(��4����{�7�=�#9�:����'��.��G�#��7�(B����=��,����;�s�+����~�u�-������*����)�1�-����*�A�.�$����|�W�Y�/����}�h�j�1����(��g�)>�?�� �!�6�)����=�$�/�	�"�	#�W�	,����=�%�0�
-r>�
keep-alive�transfer-encoding�proxy-authenticate�proxy-authorization�te�upgrade�trailers�
connectionc�6�	t|j��Sr)�_hoppish�lower)�header_names r�
is_hop_by_hopra�s��I��K�%�%�'�(�(r)T)rE�__all__rrrrrr�__contains__r^rarrr�<module>rdsM��*������$��(�'�R$1�P��,�		�)r

?>