| Server IP : 121.121.20.254 / Your IP : 216.73.217.51 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python315/Lib/wsgiref/__pycache__/ |
Upload File : |
R
>lqj� c � � Q s ] PHs\O Q2 s\O Q2 s\O Q2 sQQ ks Q Q2 sP! )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 Python Software Foundation, and were
written by Barry Warsaw.
z[ \(\)<>@,;:\\"/\[\]\?=]z[\x00-\x1F\x7F]z[\x00-\x08\x0A-\x1F\x7F]c �� � Udi [ U2 ] 6� cY U% f [ O U2 % c- UO QQ2 O QQ2 oU 8 QU8 Q0! U 8 QU8 0! U ! )zvConvenience function to format and return a key=value pair.
This will quote the value if needed or if quote is true.
�\z\\�"z\"z="�=)�len� tspecials�search�replace)�param�value�quotes &&&�$C:\Python315\\Lib\wsgiref\headers.py�_formatparamr
s_ � �
��S��Z�!�^��I�$�$�U�+�+��M�M�$��/�7�7��U�C�E� %�u�-�-�#�U�+�+��� c � ` � \ sQ s]!s n QsQQ ksQ sQ sQ sQ s Q s
Q sQ sQQ
ks
Q sQ sQ
sQ sQ sQ sQ sQ sQsU sP! )�Headersz,Manage a collection of HTTP response headersc �� � Ud SL, o[ U2 [ Ic [ Q2 gVm SF D+ v q#U O UP Q5 U O UP
Q5 J- P! )Nz+Headers must be a list of name/value tuples��name)�type�list� TypeError�_headers�_convert_string_type)�self�headers�k�vs && r �__init__�Headers.__init__$ s` � �$�0�'�b����=��$��I�J�J��
������)�)�!�$�)�7��)�)�!�%�)�8� r c �� � [ U2 [ I c9 U% c [ L[ oUO U2 % c [ Q2 gU! [
QO [ U2 2 2 g)zConvert/check value type.z)Control characters not allowed in headersz1Header names/values must be of type str (got {0})) r �str�_name_disallowed_re�_value_disallowed_rer �
ValueError�AssertionError�format�repr)r r
r �regexs &&$ r r �Headers._convert_string_type. sY � ���;�#��,0�(�6J�E��|�|�E�"�"� �!L�M�M��L�� %�%+�V�D��K�%8�:� :r c �. � [ U O 2 ! )z9Return the total number of headers, including duplicates.)r r �r s &r �__len__�Headers.__len__8 s � ��4�=�=�!�!r c � � V U O O U O UP Q5 U O UP
Q5 12 P! )zSet the value of a header.r )r �appendr )r r �vals &&&r �__setitem__�Headers.__setitem__<