관리-도구
편집 파일: compression_utils.cpython-311.pyc
� �܋f� � � � d dl Z d dlZd dlmZ d dlmZmZ d dlZn# e $ r d dlZY nw xY wdZ n # e $ r dZ Y nw xY wdZ ddee de d efd �Z G d� d� � Z G d � de� � Z G d� de� � Z G d� d� � ZdS )� N)�Executor)�Optional�castTFi �encoding�suppress_deflate_header�returnc �b � | dk rdt j z S |r t j nt j S )N�gzip� )�zlib� MAX_WBITS)r r s �P/opt/cloudlinux/venv/lib64/python3.11/site-packages/aiohttp/compression_utils.py�encoding_to_moder s1 � � �6����D�N�"�"�5�I�D�N�?�?�4�>�I� c �@ � e Zd Zdefdedee dee fd�ZdS )�ZlibBaseHandlerN�mode�executor�max_sync_chunk_sizec �0 � || _ || _ || _ d S �N)�_mode� _executor�_max_sync_chunk_size)�selfr r r s r �__init__zZlibBaseHandler.__init__ s � � �� �!���$7��!�!�!r )�__name__� __module__�__qualname__�MAX_SYNC_CHUNK_SIZE�intr r r � r r r r sZ � � � � � � (,�-@� 8� 8��8� �8�$�8� &�c�]� 8� 8� 8� 8� 8� 8r r c �� � � e Zd Zddddej defdee dedee dee de dee d ee f� fd � Zdedefd �Z dedefd�Zej fde defd�Z� xZS )�ZLibCompressorNFr r �level�wbits�strategyr r c �, �� t � � � |�t ||� � n|||�� � |�!t j | j |�� � | _ n!t j | j ||�� � | _ t j � � | _ d S )N�r r r )r&