Server : Apache System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64 User : nobody ( 99) PHP Version : 8.1.23 Disable Function : NONE Directory : /opt/alt/python311/lib64/python3.11/wsgiref/__pycache__/ |
� �,dn � �R � d dl Z e j d� � Zdd�Z G d� d� � ZdS )� Nz[ \(\)<>@,;:\\"/\[\]\?=]� c �� � |�ht |� � dk rU|st � |� � r2|� dd� � � dd� � }| �d|�d�S | �d|��S | S )Nr �\z\\�"z\"z="�=)�len� tspecials�search�replace)�param�value�quotes �6/opt/alt/python311/lib64/python3.11/wsgiref/headers.py�_formatparamr s� � �� ��S��Z�Z�!�^�^�� ,�I�$�$�U�+�+� ,��M�M�$��/�/�7�7��U�C�C�E� %���u�u�u�-�-�#�e�e�U�U�+�+��� c �z � e Zd Z dd�Zd� Zd� Zd� Zd� Zd� Zd� Z d � Z dd �Zd� Zd� Z d � Zd� Zd� Zd� Zd� Zd� ZdS )�HeadersNc �j � |�|ng }t |� � t urt d� � �|| _ d S )Nz+Headers must be a list of name/value tuples)�type�list� TypeError�_headers�_convert_string_type)�self�headers�k�vs r �__init__zHeaders.__init__ sA � �$�0�'�'�b����=�=��$�$��I�J�J�J��� � -� -r c � � t |� � t u r|S t d� t |� � � � � � �)Nz1Header names/values must be of type str (got {0}))r �str�AssertionError�format�repr)r r s r r zHeaders._convert_string_type) sE � �'���;�;�#����L�� %�%+�V�D��K�K�%8�%8�:� :� :r c �, � t | j � � S �N)r r �r s r �__len__zHeaders.__len__0 s � �G��4�=�!�!�!r c � � | |= | j � | � |� � | � |� � f� � d S r% )r �appendr )r �name�vals r �__setitem__zHeaders.__setitem__4 sY � �(���J�� ��� � &� &�t� ,� ,�d�.G�.G��.L�.L�M� O� O� O� O� Or c � �� | � �� � � � � ��fd�| j D � � | j d d �<