MOON
Server: Apache
System: Linux server30c.hostingraja.org 3.10.0-962.3.2.lve1.5.63.el7.x86_64 #1 SMP Fri Oct 8 12:03:35 UTC 2021 x86_64
User: jibhires (1887)
PHP: 8.1.30
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open, allow_url_fopen, symlink, escapeshellcmd, pcntl_exec
Upload Files
File: //opt/alt/python35/lib64/python3.5/site-packages/aiohttp/__pycache__/http_exceptions.cpython-35.pyc


���Z��@sdZdZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGd	d
�d
e�ZGdd�de�ZGd
d�de�Z	Gdd�de�Z
Gdd�de�ZGdd�de�ZGdd�de�Z
dS)z"Low-level http related exceptions.�HttpProcessingErrorc	sLeZdZdZdZdZdZdddddd�fdd	�Z�S)
rz�HTTP error.

    Shortcut for raising HTTP errors with custom code, message and headers.

    code: HTTP Error code.
    message: (optional) Error message.
    headers: (optional) Headers to be sent in response, a list of pairs
    ��N�code�message�headerscsH|dk	r||_||_||_t�jd|j|f�dS)Nz%s, message='%s')rrr�super�__init__)�selfrrr)�	__class__��/http_exceptions.pyrs
			zHttpProcessingError.__init__)�__name__�
__module__�__qualname__�__doc__rrrrrr)r
rrs
cs4eZdZdZdZdd�fdd�Z�S)�BadHttpMessagei�zBad RequestrNcst�jd|d|�dS)Nrr)rr)r	rr)r
rrr"szBadHttpMessage.__init__)r
rrrrrrr)r
rrsrc@seZdZdZdZdS)�HttpBadRequesti�zBad RequestN)r
rrrrrrrrr&src@seZdZdZdS)�PayloadEncodingErrorzBase class for payload errorsN)r
rrrrrrrr,src@seZdZdZdS)�ContentEncodingErrorzContent encoding error.N)r
rrrrrrrr0src@seZdZdZdS)�TransferEncodingErrorztransfer encoding error.N)r
rrrrrrrr4src@seZdZdZdS)�ContentLengthErrorz2Not enough data for satisfy content length header.N)r
rrrrrrrr8srcs%eZdZd�fdd�Z�S)�LineTooLongZUnknowncst�jd||f�dS)Nz'Got more than %s bytes when reading %s.)rr)r	�line�limit)r
rrr>s	zLineTooLong.__init__)r
rrrrr)r
rr<srcs"eZdZ�fdd�Z�S)�
InvalidHeadercsGt|t�r!|jdd�}t�jdj|��||_dS)Nzutf-8�surrogateescapezInvalid HTTP Header: {})�
isinstance�bytes�decoderr�format�hdr)r	r )r
rrrEszInvalidHeader.__init__)r
rrrrr)r
rrCsrc@seZdZddd�ZdS)�
BadStatusLinercCs+|st|�}|f|_||_dS)N)�repr�argsr)r	rrrrrNszBadStatusLine.__init__N)r
rrrrrrrr!Lsr!c@seZdZdS)�InvalidURLErrorN)r
rrrrrrr$Usr$N)r)r�__all__�	Exceptionrrrrrrrrrr!r$rrrr�<module>s