Files
Praxisarbeit-1/Code/venv/lib/python3.13/site-packages/pylsqpack/__init__.pyi
mofixx a5df3861fd Code
2025-08-08 10:41:30 +02:00

22 lines
801 B
Python

from typing import List, Tuple
Headers = List[Tuple[bytes, bytes]]
class DecompressionFailed(Exception): ...
class DecoderStreamError(Exception): ...
class EncoderStreamError(Exception): ...
class StreamBlocked(Exception): ...
class Decoder:
def __init__(self, max_table_capacity: int, blocked_streams: int) -> None: ...
def feed_encoder(self, data: bytes) -> List[int]: ...
def feed_header(self, stream_id: int, data: bytes) -> Tuple[bytes, Headers]: ...
def resume_header(self, stream_id: int) -> Tuple[bytes, Headers]: ...
class Encoder:
def apply_settings(
self, max_table_capacity: int, blocked_streams: int
) -> bytes: ...
def encode(self, stream_id: int, headers: Headers) -> Tuple[bytes, bytes]: ...
def feed_decoder(self, data: bytes) -> None: ...