SILENT KILLERPanel

Current Path: > > opt > alt > python34 > lib64 > python3.4 > 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 ]

Files and Folders in: //opt/alt/python34/lib64/python3.4/wsgiref//__pycache__

NameTypeSizeLast ModifiedActions
__init__.cpython-34.pyc File 733 bytes April 17 2024 17:10:10.
__init__.cpython-34.pyo File 733 bytes April 17 2024 17:10:10.
handlers.cpython-34.pyc File 16962 bytes April 17 2024 17:10:10.
handlers.cpython-34.pyo File 16462 bytes April 17 2024 17:10:06.
headers.cpython-34.pyc File 8107 bytes April 17 2024 17:10:10.
headers.cpython-34.pyo File 8039 bytes April 17 2024 17:10:06.
simple_server.cpython-34.pyc File 5661 bytes April 17 2024 17:10:10.
simple_server.cpython-34.pyo File 5661 bytes April 17 2024 17:10:10.
util.cpython-34.pyc File 5627 bytes April 17 2024 17:10:10.
util.cpython-34.pyo File 5627 bytes April 17 2024 17:10:10.
validate.cpython-34.pyc File 15688 bytes April 17 2024 17:10:10.
validate.cpython-34.pyo File 15688 bytes April 17 2024 17:10:10.

Reading File: //opt/alt/python34/lib64/python3.4/wsgiref//__pycache__/headers.cpython-34.pyo

�
i f�@sJdZddlZejd�Zdddd�ZGdd�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[ \(\)<>@,;:\\"/\[\]\?=]�cCsx|dk	rpt|�dkrp|s3tj|�r_|jdd�jdd�}d||fSd||fSn|SdS)	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%s="%s"z%s=%s)�len�	tspecials�search�replace)Zparam�valueZquote�r
�4/opt/alt/python34/lib64/python3.4/wsgiref/headers.py�_formatparam
src@s�eZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
dd�Zddd�Zdd�Z
dd�Zdd�Zdd�Zdd�Zdd �Zd!d"�Zd#d$�ZdS)%�Headersz,Manage a collection of HTTP response headerscCs.t|�tk	r!td��n||_dS)Nz+Headers must be a list of name/value tuples)�type�list�	TypeError�_headers)�selfZheadersr
r
r�__init__ s	zHeaders.__init__cCs5t|�tkr|Stdjt|����dS)zConvert/check value type.z1Header names/values must be of type str (got {0})N)r�str�AssertionError�format�repr)rr	r
r
r�_convert_string_type)s	zHeaders._convert_string_typecCs
t|j�S)z9Return the total number of headers, including duplicates.)rr)rr
r
r�__len__0szHeaders.__len__cCs3||=|jj|j|�|j|�f�dS)zSet the value of a header.N)r�appendr)r�name�valr
r
r�__setitem__4s	zHeaders.__setitem__csB|j�j����fdd�|jD�|jdd�<dS)zyDelete all occurrences of a header, if present.

        Does *not* raise an exception if the header is missing.
        cs,g|]"}|dj��kr|�qS)r)�lower)�.0�kv)rr
r�
<listcomp>@s	z'Headers.__delitem__.<locals>.<listcomp>N)rrr)rrr
)rr�__delitem__:szHeaders.__delitem__cCs
|j|�S)aHGet 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
        occurrance gets returned is undefined.  Use getall() to get all
        the values matching a header field name.
        )�get)rrr
r
r�__getitem__Bs	zHeaders.__getitem__cCs|j|�dk	S)z/Return true if the message contains the header.N)r#)rrr
r
r�__contains__MszHeaders.__contains__cs/|j�j����fdd�|jD�S)aqReturn 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.
        cs0g|]&}|dj��kr|d�qS)rr)r)rr )rr
rr![s	z#Headers.get_all.<locals>.<listcomp>)rrr)rrr
)rr�get_allRszHeaders.get_allNcCsI|j|j��}x-|jD]"\}}|j�|kr|SqW|S)z:Get the first header value for 'name', or return 'default')rrr)rr�default�k�vr
r
rr#^s
zHeaders.getcCsdd�|jD�S)a*Return 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.
        cSsg|]\}}|�qSr
r
)rr(r)r
r
rr!os	z Headers.keys.<locals>.<listcomp>)r)rr
r
r�keysgszHeaders.keyscCsdd�|jD�S)a!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.
        cSsg|]\}}|�qSr
r
)rr(r)r
r
rr!ys	z"Headers.values.<locals>.<listcomp>)r)rr
r
r�valuesqszHeaders.valuescCs|jdd�S)aGet 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.
        N)r)rr
r
r�items{sz
Headers.itemscCsd|jS)NzHeaders(%r))r)rr
r
r�__repr__�szHeaders.__repr__cCs'djdd�|jD�ddg�S)zkstr() returns the formatted headers, complete with end line,
        suitable for direct HTTP transmission.z
cSsg|]}d|�qS)z%s: %sr
)rr r
r
rr!�s	z#Headers.__str__.<locals>.<listcomp>�)�joinr)rr
r
r�__str__�szHeaders.__str__cCst|�jd�S)Nz
iso-8859-1)r�encode)rr
r
r�	__bytes__�szHeaders.__bytes__cCsO|j|�}|dkrG|jj|j|�|j|�f�|S|SdS)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'.N)r#rrr)rrr	�resultr
r
r�
setdefault�szHeaders.setdefaultcKs�g}|dk	r1|j|�}|j|�nx�|j�D]t\}}|j|�}|dkr�|j|jdd��q>|j|�}|jt|jdd�|��q>W|jj|j|�dj|�f�dS)afExtended 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�_�-z; )rrr,rrrr/)r�_nameZ_valueZ_params�partsr(r)r
r
r�
add_header�s&zHeaders.add_header)�__name__�
__module__�__qualname__�__doc__rrrrr"r$r%r&r#r*r+r,r-r0r2r4r9r
r
r
rr
s$		



r
)r=�re�compilerrr
r
r
r
r�<module>s

SILENT KILLER Tool