This commit is contained in:
mofixx
2025-08-08 10:41:30 +02:00
parent 4444be3799
commit a5df3861fd
1674 changed files with 234266 additions and 0 deletions

View File

@ -0,0 +1,21 @@
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: ...