add http api

This commit is contained in:
yanyongyu
2020-08-01 22:03:40 +08:00
parent a39c2e223a
commit b3f82f3f22
6 changed files with 70 additions and 14 deletions

View File

@ -67,7 +67,7 @@ class BaseWebSocket(object):
raise NotImplementedError
@abc.abstractmethod
async def close(self):
async def close(self, code: int):
raise NotImplementedError
@abc.abstractmethod