
    +Jf                     F    d dl mZ d dlmZ ddlmZ  G d de          ZdS )    )	b64encode)Format   )_bin_or_textc                   "    e Zd ZddZd Zd ZdS )HttpStreamFormatNFc                 n    || _         || _        || _        | j        s| j         t          d          d S d S )Nzcontent not set)contentclosecontent_filters
ValueError)selfr
   r   r   s       _/home/alex/cs2snipeproduction/venv/lib/python3.11/site-packages/gripcontrol/httpstreamformat.py__init__zHttpStreamFormat.__init__   sH    $,$*($	 ',	%	&	&&' ',,    c                     dS )Nzhttp-stream )r   s    r   namezHttpStreamFormat.name   s    	r   c                     t                      }| j        rd|d<   nB| j        
| j        |d<   t          | j                  \  }}|r||d<   nt          |          |d<   |S )Nr   actionzcontent-filtersr
   zcontent-bin)dictr   r   r   r
   r   )r   outis_textvals       r   exportzHttpStreamFormat.export!   sr    #	Z 
(3x==
&!1Ct|,,<7C (C	NN"3C	*r   )NFN)__name__
__module____qualname__r   r   r   r   r   r   r   r      sF        
' ' ' '      r   r   N)base64r   
pubcontrolr   gripcontrolr   r   r   r   r   <module>r"      sq                % % % % % %         v          r   