Update
This commit is contained in:
16
httplib/message.py
Normal file
16
httplib/message.py
Normal 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
|
Reference in New Issue
Block a user