o
    ¹ià  ã                   @   sP   d dl mZ d dl mZ d dl mZ d dlmZ d dlmZ G dd„ deƒZ	dS )	é   )ÚCharsetAccept)ÚLanguageAccept)Ú
MIMEAccept)Úparse_accept_header)Úcached_propertyc                   @   s@   e Zd ZdZedd„ ƒZedd„ ƒZedd„ ƒZedd	„ ƒZd
S )ÚAcceptMixinzÄA mixin for classes with an :attr:`~BaseResponse.environ` attribute
    to get all the HTTP accept headers as
    :class:`~werkzeug.datastructures.Accept` objects (or subclasses
    thereof).
    c                 C   ó   t | j d¡tƒS )zoList of mimetypes this client supports as
        :class:`~werkzeug.datastructures.MIMEAccept` object.
        ÚHTTP_ACCEPT)r   ÚenvironÚgetr   ©Úself© r   úS/var/www/edux/Edux_v2/venv/lib/python3.10/site-packages/werkzeug/wrappers/accept.pyÚaccept_mimetypes   s   zAcceptMixin.accept_mimetypesc                 C   r   )zqList of charsets this client supports as
        :class:`~werkzeug.datastructures.CharsetAccept` object.
        ÚHTTP_ACCEPT_CHARSET)r   r
   r   r   r   r   r   r   Úaccept_charsets   s   ÿzAcceptMixin.accept_charsetsc                 C   s   t | j d¡ƒS )z¶List of encodings this client accepts.  Encodings in a HTTP term
        are compression encodings such as gzip.  For charsets have a look at
        :attr:`accept_charset`.
        ÚHTTP_ACCEPT_ENCODING)r   r
   r   r   r   r   r   Úaccept_encodings   s   zAcceptMixin.accept_encodingsc                 C   r   )a   List of languages this client accepts as
        :class:`~werkzeug.datastructures.LanguageAccept` object.

        .. versionchanged 0.5
           In previous versions this was a regular
           :class:`~werkzeug.datastructures.Accept` object.
        ÚHTTP_ACCEPT_LANGUAGE)r   r
   r   r   r   r   r   r   Úaccept_languages'   s   	ÿzAcceptMixin.accept_languagesN)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   r   r   r   r      s    


r   N)
Údatastructuresr   r   r   Úhttpr   Úutilsr   Úobjectr   r   r   r   r   Ú<module>   s    