| Server IP : 172.67.201.108 / Your IP : 216.73.217.83 Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5 System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib64/python3.9/site-packages/awscrt/eventstream/__pycache__/ |
Upload File : |
a
ů�iI_ � @ s d Z ddlZddlmZmZ ddlmZ ddlZddlm Z ddl
mZmZm
Z
ddlmZ ddlmZ dd lmZ dd
lmZ ddlmZmZmZ g d�ZG d
d� de�ZG dd� d�ZG dd� de�Zdd� Zdd� Zdd� Z G dd� de�Z!G dd� de�Z"G dd� de�Z#dS )zI
event-stream RPC (remote procedure call) protocol library for `awscrt`.
� N)�ABC�abstractmethod)�NativeResource)�Header)�ClientBootstrap�
SocketOptions�TlsConnectionOptions)�Callable)�Future)�IntEnum)�partial)�Optional�Sequence�Union)�MessageType�MessageFlag�ClientConnectionHandler�ClientConnection�ClientContinuation�ClientContinuationHandlerc @ s8 e Zd ZdZdZdZdZdZdZdZ dZ
d Zd
d� ZdS )
r a� Types of messages in the event-stream RPC protocol.
The :attr:`~MessageType.APPLICATION_MESSAGE` and :attr:`~MessageType.APPLICATION_ERROR` types may only be sent
on streams, and will never arrive as a protocol message (stream-id 0).
For all other message types, they may only be sent as protocol messages
(stream-id 0), and will never arrive as a stream message.
Different message types expect specific headers and flags, consult documentation.r � � � � � � � c C s t | �S �N��str��self�format_spec� r# �</usr/lib64/python3.9/site-packages/awscrt/eventstream/rpc.py�
__format__C s zMessageType.__format__N)
�__name__�
__module__�__qualname__�__doc__ZAPPLICATION_MESSAGEZAPPLICATION_ERRORZPINGZ
PING_RESPONSEZCONNECTZCONNECT_ACKZPROTOCOL_ERRORZINTERNAL_ERRORr% r# r# r# r$ r s
r c @ s$ e Zd ZdZdZdZdZdd� ZdS )r z�Flags for messages in the event-stream RPC protocol.
Flags may be XORed together.
Not all flags can be used with all message types, consult documentation.
r r r c C s t | �S r r r r# r# r$ r% a s zMessageFlag.__format__N)r&