3 �gaz � @ sf d dl mZ d dlmZ ddlmZmZ ddlmZ G dd� d�Z G dd � d e �Z G d d� de �ZdS ) � )�Iterable)�urlsplit� )� split_cookies�parse_content_type_header)�cached_propertyc @ sv e Zd ZdZdd� Zeee d�dd�Zeee d�dd�Z e ed �d d��Ze ed �dd ��Ze ed �dd��ZdS )�HTTPMessagez!Abstract class for HTTP messages.c C s || _ d S )N)�_orig)�selfZorig� r �/usr/lib/python3.6/models.py�__init__ s zHTTPMessage.__init__)� chunk_size�returnc C s t �dS )z!Return an iterator over the body.N)�NotImplementedError)r r r r r � iter_body s zHTTPMessage.iter_bodyc C s t �dS )z@Return an iterator over the body yielding (`line`, `line_feed`).N)r )r r r r r � iter_lines s zHTTPMessage.iter_lines)r c C s t �dS )z*Return a `str` with the message's headers.N)r )r r r r �headers s zHTTPMessage.headersc C s t | j�\}}|jdd�S )N�charset� )r �content_type�get)r �ctZparamsr r r �encoding s zHTTPMessage.encodingc C s&