⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.133
Server IP:
185.119.109.197
Server:
Linux managedhosting.chostar.me 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3
/
dist-packages
/
botocore
/
__pycache__
/
View File Name :
response.cpython-310.pyc
o <&aE @ s d dl Z d dlmZ d dlmZmZmZ d dlmZ d dlm Z d dlmZ d dlm Z d dlmZ d d lmZ e eZG d d deZdd ZdS ) N)set_socket_timeout)IncompleteReadErrorReadTimeoutErrorResponseStreamingError)r ) ProtocolError)parsers)ScalarTypes) XMLParseError)first_non_none_responsec @ sh e Zd ZdZdZdd Zdd Zddd Zd d Zdd Z e Z dddZefddZdd Z dd ZdS ) StreamingBodyae Wrapper class for an http response body. This provides a few additional conveniences that do not exist in the urllib3 model: * Set the timeout on the socket (i.e read() timeouts) * Auto validation of content length, if the amount of bytes we read does not match the content length, an exception is raised. c C s || _ || _d| _d S )Nr )_raw_stream_content_length_amount_read)self raw_streamcontent_length r 3/usr/lib/python3/dist-packages/botocore/response.py__init__0 s zStreamingBody.__init__c C s2 z t | j| W dS ty tjddd w )z&Set the timeout seconds on the socket.zbCannot access the socket object of a streaming response. It's possible the interface has changed.T)exc_infoN)r r AttributeErrorloggererror)r timeoutr r r r 5 s z StreamingBody.set_socket_timeoutNc C s z| j |}W n# ty } zt|j|dd}~w ty+ } zt|dd}~ww | jt|7 _|du s?|sC|dkrC| |S )zhRead at most amt bytes from the stream. If the amt argument is omitted, read all data. )endpoint_urlr N)r r ) r readURLLib3ReadTimeoutErrorr urlURLLib3ProtocolErrorr r len_verify_content_length)r amtchunker r r r L s zStreamingBody.readc C s | | jS )zCReturn an iterator to yield 1k chunks from the raw stream. )iter_chunks_DEFAULT_CHUNK_SIZEr r r r __iter__` s zStreamingBody.__iter__c C s | | j}|r |S t )z6Return the next 1k chunk from the raw stream. )r r&