Source code for harp.http.typing.serializers
from typing import Protocol
[docs]
class MessageSerializer(Protocol):
@property
def summary(self) -> str:
return ...
@property
def headers(self) -> str:
return ...
@property
def body(self) -> bytes:
return ...