mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-27 16:21:28 +00:00
add fastapi routes, adapters
This commit is contained in:
@ -7,6 +7,9 @@ from ipaddress import IPv4Address
|
||||
|
||||
class BaseDriver(object):
|
||||
|
||||
def __init__(self):
|
||||
raise NotImplementedError
|
||||
|
||||
@property
|
||||
def server_app(self):
|
||||
raise NotImplementedError
|
||||
@ -25,3 +28,9 @@ class BaseDriver(object):
|
||||
*args,
|
||||
**kwargs):
|
||||
raise NotImplementedError
|
||||
|
||||
async def _handle_http(self):
|
||||
raise NotImplementedError
|
||||
|
||||
async def _handle_ws_reverse(self):
|
||||
raise NotImplementedError
|
||||
|
Reference in New Issue
Block a user