Current Path: > > opt > alt > python311 > lib64 > python3.11 > 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 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
__init__.cpython-311.opt-1.pyc | File | 839 bytes | June 23 2025 15:48:00. | |
__init__.cpython-311.opt-2.pyc | File | 164 bytes | June 23 2025 15:48:05. | |
__init__.cpython-311.pyc | File | 839 bytes | June 23 2025 15:48:00. | |
handlers.cpython-311.opt-1.pyc | File | 24278 bytes | June 23 2025 15:48:03. | |
handlers.cpython-311.opt-2.pyc | File | 19026 bytes | June 23 2025 15:48:05. | |
handlers.cpython-311.pyc | File | 25226 bytes | June 23 2025 15:48:00. | |
headers.cpython-311.opt-1.pyc | File | 10910 bytes | June 23 2025 15:48:03. | |
headers.cpython-311.opt-2.pyc | File | 7773 bytes | June 23 2025 15:48:05. | |
headers.cpython-311.pyc | File | 11079 bytes | June 23 2025 15:48:00. | |
simple_server.cpython-311.opt-1.pyc | File | 8953 bytes | June 23 2025 15:48:00. | |
simple_server.cpython-311.opt-2.pyc | File | 8194 bytes | June 23 2025 15:48:05. | |
simple_server.cpython-311.pyc | File | 8953 bytes | June 23 2025 15:48:00. | |
types.cpython-311.opt-1.pyc | File | 4308 bytes | June 23 2025 15:48:00. | |
types.cpython-311.opt-2.pyc | File | 4028 bytes | June 23 2025 15:48:05. | |
types.cpython-311.pyc | File | 4308 bytes | June 23 2025 15:48:00. | |
util.cpython-311.opt-1.pyc | File | 7865 bytes | June 23 2025 15:48:00. | |
util.cpython-311.opt-2.pyc | File | 6331 bytes | June 23 2025 15:48:05. | |
util.cpython-311.pyc | File | 7865 bytes | June 23 2025 15:48:00. | |
validate.cpython-311.opt-1.pyc | File | 23076 bytes | June 23 2025 15:48:00. | |
validate.cpython-311.opt-2.pyc | File | 19438 bytes | June 23 2025 15:48:05. | |
validate.cpython-311.pyc | File | 23076 bytes | June 23 2025 15:48:00. |
� !A?hn � �T � d Z ddlZ ej d� � Zdd�Z G d� d� � ZdS ) z�Manage HTTP Response Headers Much of this module is red-handedly pilfered from email.message in the stdlib, so portions are Copyright (C) 2001,2002 Python Software Foundation, and were written by Barry Warsaw. � Nz[ \(\)<>@,;:\\"/\[\]\?=]� c �� � |�ht |� � dk rU|st � |� � r2|� dd� � � dd� � }| �d|�d�S | �d|��S | S ) z~Convenience function to format and return a key=value pair. This will quote the value if needed or if quote is true. 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 �| � e Zd ZdZdd�Zd� Zd� Zd� Zd� Zd� Z d � Z d � Zdd�Zd� Z d � Zd� Zd� Zd� Zd� Zd� Zd� ZdS )�Headersz,Manage a collection of HTTP response headersNc �� � |�|ng }t |� � t urt d� � �|| _ |D ]/\ }}| � |� � | � |� � �0d 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__ s� � �$�0�'�'�b����=�=��$�$��I�J�J�J��� � -�� -� -���1��)�)�!�,�,�,��)�)�!�,�,�,�,� -� -r c � � t |� � t u r|S t d� t |� � � � � � �)zConvert/check value type.z1Header names/values must be of type str (got {0}))r �str�AssertionError�format�repr)r r s r r zHeaders._convert_string_type) sB � ���;�;�#����L�� %�%+�V�D��K�K�%8�%8�:� :� :r c �* � t | j � � S )z9Return the total number of headers, including duplicates.)r r �r s r �__len__zHeaders.__len__0 s � ��4�=�!�!�!r c � � | |= | j � | � |� � | � |� � f� � dS )zSet the value of a header.N)r �appendr )r �name�vals r �__setitem__zHeaders.__setitem__4 sV � ���J�� ��� � &� &�t� ,� ,�d�.G�.G��.L�.L�M� O� O� O� O� Or c � �� | � �� � � � � ��fd�| j D � � | j dd�<