This commit is contained in:
2021-03-24 16:35:12 +01:00
parent 9ba7a030a7
commit d14252f707
10 changed files with 325 additions and 185 deletions

16
httplib/message.py Normal file
View File

@@ -0,0 +1,16 @@
from typing import Dict
class Message:
version: str
status: int
msg: str
headers: Dict[str, str]
body: bytes
def __init__(self, version: str, status: int, msg: str, headers: Dict[str, str], body: bytes = None):
self.version = version
self.status = status
self.msg = msg
self.headers = headers
self.body = body