mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
10 lines
400 B
Python
10 lines
400 B
Python
__all__ = ["body_decode", "body_encode", "decode", "decodestring", "header_encode", "header_length"]
|
|
|
|
def header_length(bytearray: str | bytes) -> int: ...
|
|
def header_encode(header_bytes: str | bytes, charset: str = ...) -> str: ...
|
|
def body_encode(s: bytes, maxlinelen: int = ..., eol: str = ...) -> str: ...
|
|
def decode(string: str | bytes) -> bytes: ...
|
|
|
|
body_decode = decode
|
|
decodestring = decode
|