From ea48b863108003a915fee753330d86812aa64083 Mon Sep 17 00:00:00 2001 From: StarHeart Date: Fri, 28 May 2021 22:27:49 +0800 Subject: [PATCH 1/2] :memo: add discord server link --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index bbbc7b98..e73bd800 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,9 @@ _✨ Python 异步机器人框架 ✨_ QQ Chat + + Discord Chat + Telegram Chat From 8095be9ab9fdc63da39c745958f2e0c0c0752b2a Mon Sep 17 00:00:00 2001 From: nonebot Date: Fri, 28 May 2021 14:31:02 +0000 Subject: [PATCH 2/2] :memo: update api docs --- docs/api/drivers/README.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/docs/api/drivers/README.md b/docs/api/drivers/README.md index 01f34078..44a99ec4 100644 --- a/docs/api/drivers/README.md +++ b/docs/api/drivers/README.md @@ -258,16 +258,30 @@ Reverse Driver 基类。将后端框架封装,以满足适配器使用。 驱动 ASGI 对象 -### _abstract async_ `_handle_http()` +### _abstract async_ `_handle_http(*args, **kwargs)` 用于处理 HTTP 类型请求的函数 -### _abstract async_ `_handle_ws_reverse()` +### _abstract async_ `_handle_ws_reverse(*args, **kwargs)` 用于处理 WebSocket 类型请求的函数 +## _class_ `HTTPRequest` + +基类:`object` + +HTTP 请求封装。参考 [asgi http scope](https://asgi.readthedocs.io/en/latest/specs/www.html#http-connection-scope)。 + + +## _class_ `HTTPResponse` + +基类:`object` + +HTTP 响应封装。参考 [asgi http scope](https://asgi.readthedocs.io/en/latest/specs/www.html#http-connection-scope)。 + + ## _class_ `WebSocket` 基类:`object`