관리-도구
편집 파일: http_exceptions.cpython-37.pyc
B �k�a � @ s� d Z ddlmZmZ ddlmZ dZG dd� de�ZG dd � d e�Z G d d� de �Z G dd � d e �ZG dd� de�ZG dd� de�Z G dd� de�ZG dd� de �ZG dd� de �ZG dd� de �ZG dd� de �ZdS )z"Low-level http related exceptions.� )�Optional�Union� )�_CIMultiDict)�HttpProcessingErrorc @ s^ e Zd ZdZdZdZdZdddd�ee e ee dd�dd�Ze d �d d�Ze d �dd �Z dS )r z�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 r � N)�code�message�headers)r r r �returnc C s |d k r|| _ || _|| _d S )N)r r r )�selfr r r � r �J/opt/alt/python37/lib64/python3.7/site-packages/aiohttp/http_exceptions.py�__init__ s zHttpProcessingError.__init__)r c C s | j � d| j��S )Nz , message=)r r )r r r r �__str__% s zHttpProcessingError.__str__c C s d| j j� d| � d�S )N�<z: �>)� __class__�__name__)r r r r �__repr__( s zHttpProcessingError.__repr__)r � __module__�__qualname__�__doc__r r r r �int�strr r r r r r r r r s r c s8 e Zd ZdZdZdd�eee dd�� fdd�Z� Z S )�BadHttpMessagei� zBad RequestN)r )r r r c s t � j||d� |f| _d S )N)r r )�superr �args)r r r )r r r r 1 s zBadHttpMessage.__init__) r r r r r r r r r � __classcell__r r )r r r , s r c @ s e Zd ZdZdZdS )�HttpBadRequesti� zBad RequestN)r r r r r r r r r r 6 s r c @ s e Zd ZdZdS )�PayloadEncodingErrorzBase class for payload errorsN)r r r r r r r r r <